Autotracker for the Lingo Archipelago integration https://code.fourisland.com/lingo-ap-tracker/atom?h=v0.9.2 2023-05-02T19:21:29+00:00
Tracker connects to AP now
2023-05-02T19:21:29+00:00 Star Rauchenberger fefferburbia@gmail.com 2023-05-02T19:21:29+00:00 urn:sha1:116ba412079ddf647d19a54d09eb61e67a2f9aac b9c8afd0e4a49efffd504378f1db34264928250'/>
this commit

0.5

jump

master

selection_screen

An iOS game where you catch items in a cart |

summary refs log tree commit diff stats

log msg

author

committer

range

path: root/Classes/ValuableObject.m

blob: f1a036f0170cad2fddc45ca094dacb7c39862354 (plain) (blame)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

//
// ValuableObject.m
// Cart Collect
//
// Created by Starla Insigna on 8/9/11.
// Copyright 2011 Four Island. All rights reserved.
//

#import "ValuableObject.h"
#import "GameMode.h"
#import "SimpleAudioEngine.h"

@implementation ValuableObject

- (id)init
{
self = [super init];
if (self) {
// Initialization code here.
}

return self;
}

- (void)collideWithCart
{
GameMode* gameLayer = ((GameMode*) sprite.parent);
[gameLayer setScore:gameLayer.score+self.pointValue];

[[SimpleAudioEngine sharedEngine] playEffect:[[NSBundle mainBundle] pathForResource:@"Item1" ofType:@"wav"]];
}

- (void)collideWithFloor
{
GameMode* gameLayer = ((GameMode*) sprite.parent);
[gameLayer setLives:gameLayer.lives-1];

[[SimpleAudioEngine sharedEngine] playEffect:[[NSBundle mainBundle] pathForResource:@"Damage1" ofType:@"wav"]];
}

- (int)pointValue
{
@throw [NSException exceptionWithName:NSInternalInconsistencyException reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)] userInfo:nil];
}

@end

generated by cgit-pink 1.4.1 (git 2.36.1) at 2025-02-16 17:32:01 +0000