// // PointMultiplier.m // Cartographic // // Created by Starla Insigna on 9/10/11. // Copyright (c) 2011 Four Island. All rights reserved. // #import "PointMultiplier.h" #import "GameMode.h" #import "SimpleAudioEngine.h" @implementation PointMultiplier - (id)init { self = [super init]; if (nil != self) { sprite = [CCSprite spriteWithFile:@"multiplier.png"]; weight = 8; } return self; } - (void)collideWithCart { GameMode* gameLayer = ((GameMode*) sprite.parent); [gameLayer setPointMultiplier:gameLayer.pointMultiplier+1]; [[SimpleAudioEngine sharedEngine] playEffect:[[NSBundle mainBundle] pathForResource:@"Absorption2" ofType:@"wav"]]; } @end