about summary refs log tree commit diff stats
path: root/data/maps/the_double_sided/rooms/Flipped Yellow Back Area.txtpb
blob: 1c3193abdebf396df287d6125c88c6b962509225 (plain) (blame)
1
2
3
4
5
6
7
8
name: "Flipped Yellow Back Area"
panels {
  name: "ANGELS"
  path: "Panels/Maze/panel_13"
  clue: "angels"
  answer: "demons"
  symbols: SUN
}
.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