summary refs log tree commit diff stats
path: root/Classes/Rock.m
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/Rock.m')
-rwxr-xr-xClasses/Rock.m37
1 files changed, 0 insertions, 37 deletions
diff --git a/Classes/Rock.m b/Classes/Rock.m deleted file mode 100755 index aac1aaf..0000000 --- a/Classes/Rock.m +++ /dev/null
@@ -1,37 +0,0 @@
1//
2// Rock.m
3// Cart Collect
4//
5// Created by iD Student Account on 7/19/11.
6// Copyright 2011 __MyCompanyName__. All rights reserved.
7//
8
9#import "Rock.h"
10#import "GameMode.h"
11#import "SimpleAudioEngine.h"
12
13@implementation Rock
14
15- (id)init
16{
17 self = [super init];
18
19 if (nil != self)
20 {
21 sprite = [CCSprite spriteWithFile:@"rock.png"];
22 weight = 7;
23 }
24
25 return self;
26}
27
28- (void)collideWithCart
29{
30 GameMode* gameLayer = ((GameMode*) sprite.parent);
31 [gameLayer setLives:gameLayer.lives-1];
32
33 [[SimpleAudioEngine sharedEngine] playEffect:[[NSBundle mainBundle] pathForResource:@"Damage1" ofType:@"wav"]];
34}
35
36
37@end