-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainGameLayer.h
64 lines (47 loc) · 1.18 KB
/
MainGameLayer.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
//
// MainGame.h
// TargetPractice
//
// Created by Ezra Paulekas on 4/4/13.
// Copyright 2013 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "Player.h"
#import "Bullet.h"
#import "Enemy.h"
#import "SimpleAudioEngine.h"
@interface MainGameLayer : CCLayer {
// custon classes
Player *thePlayer;
// CCSprites
CCSprite *theBackground;
// lebels
CCLabelBMFont *scoreLabel;
int score;
// media
SimpleAudioEngine *sae;
// floats
float bulletRatio;
// bools
BOOL areWeOnTheIpad;
// chars
signed char moveVar; // range of -128 to 128
// unsigned char moveVar; // range of 0 to 255
// ints
int screenWidth;
int screenHeight;
int ammoKindInUse;
int ammoKindToPickUp;
int numberOfEnemiesOnStage;
int maxNumberOfEnemies;
//NSStrings
NSString *ammoTypeStringName;
// CGPoints
CGPoint whereTheEnemyGotShot;
}
// returns a CCScene that contains the HelloWorldLayer as the only child
+(CCScene *) scene;
-(void) addToScore:(int) amountToAdd;
-(void) enemyAndBulletCollisionHandler;
@end