-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.h
More file actions
40 lines (35 loc) · 719 Bytes
/
game.h
File metadata and controls
40 lines (35 loc) · 719 Bytes
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
#ifndef GAME_H
#define GAME_H
#include <stdbool.h>
#include <SDL.h>
#include <SDL_gfxPrimitives.h>
#include <SDL_ttf.h>
#include "framerate.h"
#include "bullet.h"
#include "collision.h"
#include "enemy.h"
#include "powerup.h"
#include "scrolling_tile.h"
#include "scrolling_text.h"
#include "spaceship.h"
#include "spaceship_enchantments.h"
#include "interface.h"
#include "ai.h"
/* runlevel */
typedef enum
{
game_quit,
game_paused,
game_running,
game_menu,
game_over,
game_restart,
game_outro,
}game_mode;
extern int init_game(void);
extern void game_pause(void);
extern void game_run(void);
extern void game_run_menu(void);
extern void game_run_over(void);
extern void game_run_outro(void);
#endif