-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgame.h
More file actions
51 lines (44 loc) · 1.06 KB
/
game.h
File metadata and controls
51 lines (44 loc) · 1.06 KB
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
/*
*
*/
#ifndef __GAME_H__
#define __GAME_H__
#include "rpi_lib/gpio.h"
#include "rpi_lib/drawing.h"
#include "rpi_lib/i2c.h"
#include "rpi_lib/systemtimer.h"
#include "global.h"
#include "bullet.h"
#include "cannon.h"
#include "bunker.h"
#include "alienbullet.h"
#include "alien.h"
#include "ufo.h"
#include "status.h"
#define INITIAL_STOCK 3
struct Cannon cannon;
struct Bullet bullet;
struct Bunker bunkers[BUNKER_NUM * BUNKER_PARTS];
struct Alien aliens[ALIEN_NUM_HORIZONTAL * ALIEN_NUM_VERTICAL];
struct AlienBullet alienbullets[ALIENBULLET_NUM];
struct UFO ufo;
extern int ufoAppearCount;
extern int alienMoveCount;
extern int alienShotCountRandom;
extern int alienShotCountMoving;
extern int alienShotCountNearCannon;
extern int moveAlienIndex;
extern int alienAlive;
extern int highscore;
extern int score;
extern int stock;
extern int stage;
extern void InitializeGame();
extern void InitializeStage();
extern void CheckCollision();
extern int FindShotAlien();
extern void StageStart();
extern void GameOver();
extern void LoopGame();
extern void DrawGame();
#endif