-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlay.h
executable file
·78 lines (55 loc) · 1.53 KB
/
Play.h
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#import <Foundation/Foundation.h>
#import "Map.h"
#import "Pod.h"
#import "Menu.h"
@interface Play : SPSprite <UIAccelerometerDelegate, UIAlertViewDelegate>
{
SPSprite *world;
SPSprite *HUD;
SPJuggler *juggler;
Pod *jetPod;
GameMode mode;
float podX; //default jetpod x
float podY; //default jetpod y
float camX; //default cam x
float camY; //default cam y
bool shouldScrollX;
bool shouldScrollY;
int level;
int score;
int coincount;
bool isExploding;
//explosions
SPSprite *particles;
SPTexture *particleTex;
int timeLeft;
int maxTime;
float secondTimer;
float accelTime;
float fallTime;
Map *map;
bool isFlying;
bool gasTouched;
bool isDrifting;
SPSoundChannel *flyChannel;
SPSoundChannel *timerChannel;
SPTexture *cloudTex;
SPButton *pauseButton;
SPSoundChannel *explosion;
SPSoundChannel *coinChannel;
SPTextField *coinText;
SPSprite *pauseScreen;
SPSprite *clouds;
SPTextField *timerText;
}
@property (nonatomic) float accelX;
- (id)initWithLevel:(int)_level andGameMode:(GameMode)_mode;
-(void) checkAllCollisions:(SPDisplayObject *)obj;
-(void) onEnterFrameEvent:(SPEnterFrameEvent *)event;
-(void) explodePodatPos:(SPPoint *)pos;
-(void) resetPositions;
-(void) drawHUD;
-(void) addMapAndPod;
-(void) addSounds;
- (SPPoint *)movementWithDistance:(float)distance directionRadians:(float)direction factor:(float)factor;
@end