-
Notifications
You must be signed in to change notification settings - Fork 0
/
level.h
65 lines (54 loc) · 1.19 KB
/
level.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
// level.h
void InitGame( int player1, int player2 );
MBoolean InitCharacter( int player, int level );
void PrepareStageGraphics( int type );
void BeginRound( MBoolean changeMusic );
void InitDifficulty( void );
void ChooseDifficulty( int player );
void SelectRandomLevel( void );
void IncrementLevel( void );
void TotalVictory( void );
void RegisteredVictory( void );
void InitStage( void );
void DrawStage( void );
void GameStartMenu( void );
void ShowGameOverScreen( void );
#define kGlows 2
#define kLevels 12
#define kTutorialLevel 14
#define kEasyLevel 50
#define kMediumLevel 70
#define kHardLevel 90
#define kUltraLevel 110
typedef struct
{
unsigned char isHeavy;
unsigned char colorR;
unsigned char colorG;
unsigned char colorB;
short time;
} Glow;
typedef struct
{
short picture;
short intellect;
short zapStyle;
short autoSetup[6];
short speedNormal;
short speedRush;
short music;
short dropSpeed;
Glow glow[kGlows];
short hints;
}
Character;
enum
{
kPlayerControl = 0,
kAIControl,
kNobodyControl,
kAutoControl
};
extern Character character[2];
extern int level, players, credits, difficulty[2];
extern int difficultyTicks, backdropTicks, backdropFrame;