diff options
Diffstat (limited to 'Classes/PointMultiplier.m')
| -rw-r--r-- | Classes/PointMultiplier.m | 36 |
1 files changed, 0 insertions, 36 deletions
| diff --git a/Classes/PointMultiplier.m b/Classes/PointMultiplier.m deleted file mode 100644 index 0a9649d..0000000 --- a/Classes/PointMultiplier.m +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 1 | // | ||
| 2 | // PointMultiplier.m | ||
| 3 | // Cartographic | ||
| 4 | // | ||
| 5 | // Created by Starla Insigna on 9/10/11. | ||
| 6 | // Copyright (c) 2011 Four Island. All rights reserved. | ||
| 7 | // | ||
| 8 | |||
| 9 | #import "PointMultiplier.h" | ||
| 10 | #import "GameMode.h" | ||
| 11 | #import "SimpleAudioEngine.h" | ||
| 12 | |||
| 13 | @implementation PointMultiplier | ||
| 14 | |||
| 15 | - (id)init | ||
| 16 | { | ||
| 17 | self = [super init]; | ||
| 18 | |||
| 19 | if (nil != self) | ||
| 20 | { | ||
| 21 | sprite = [CCSprite spriteWithFile:@"multiplier.png"]; | ||
| 22 | weight = 8; | ||
| 23 | } | ||
| 24 | |||
| 25 | return self; | ||
| 26 | } | ||
| 27 | |||
| 28 | - (void)collideWithCart | ||
| 29 | { | ||
| 30 | GameMode* gameLayer = ((GameMode*) sprite.parent); | ||
| 31 | [gameLayer setPointMultiplier:gameLayer.pointMultiplier+1]; | ||
| 32 | |||
| 33 | [[SimpleAudioEngine sharedEngine] playEffect:[[NSBundle mainBundle] pathForResource:@"Absorption2" ofType:@"wav"]]; | ||
| 34 | } | ||
| 35 | |||
| 36 | @end | ||
