diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-18 09:48:43 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-18 09:48:43 -0400 |
commit | 2ec163612042bfa5e4e1bf220b489506f7039677 (patch) | |
tree | ead735eb871c3faf813635d08a89ec48195dab35 /src/consts.h | |
parent | dc0f0d6fa178403080658887af3ca1a6c0e41188 (diff) | |
download | therapy-2ec163612042bfa5e4e1bf220b489506f7039677.tar.gz therapy-2ec163612042bfa5e4e1bf220b489506f7039677.tar.bz2 therapy-2ec163612042bfa5e4e1bf220b489506f7039677.zip |
Game can now read map file from map editor (also added new map)
Diffstat (limited to 'src/consts.h')
-rw-r--r-- | src/consts.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/consts.h b/src/consts.h new file mode 100644 index 0000000..804c761 --- /dev/null +++ b/src/consts.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #ifndef CONSTS_H | ||
2 | #define CONSTS_H | ||
3 | |||
4 | const int TILE_WIDTH = 8; | ||
5 | const int TILE_HEIGHT = 8; | ||
6 | const int GAME_WIDTH = 320; | ||
7 | const int GAME_HEIGHT = 200; | ||
8 | const int MAP_WIDTH = GAME_WIDTH/TILE_WIDTH; | ||
9 | const int MAP_HEIGHT = GAME_HEIGHT/TILE_HEIGHT - 1; | ||
10 | |||
11 | const int FRAMES_PER_SECOND = 60; | ||
12 | const double SECONDS_PER_FRAME = 1.0 / FRAMES_PER_SECOND; | ||
13 | |||
14 | #endif | ||