blob: 087f9892b7566a9986c4c4f0b4b30d479b8a3d36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#define MAXPATHLEN 1024
#define SCREEN_DEPTH 32
#define SCREEN_PROPS SDL_HWSURFACE|SDL_DOUBLEBUF
#define SCREEN_WIDTH 768
#define SCREEN_HEIGHT 480
#define TILE_WIDTH 101
#define TILE_HEIGHT 57
#define MAX_FPS 125
#define FRAME_TIME 1000/MAX_FPS
//speeds
#define MOVEMENT_FREQ 2
#define GRAVITY 1.2
//spritesheet dimensions
#define SPRITE_FRAMES_W 4
#define SPRITE_FRAMES_H 4
#define MAX_MAP_W 60
#define MAX_MAP_H 40
enum Direction {UP, RIGHT, DOWN, LEFT};
enum Enemy {NEUTRAL, EVIL, WEAPON, SUPEREVIL};
|