summary refs log tree commit diff stats
path: root/src/consts.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-18 09:48:43 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-18 09:48:43 -0400
commit2ec163612042bfa5e4e1bf220b489506f7039677 (patch)
treeead735eb871c3faf813635d08a89ec48195dab35 /src/consts.h
parentdc0f0d6fa178403080658887af3ca1a6c0e41188 (diff)
downloadtherapy-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.h14
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
4const int TILE_WIDTH = 8;
5const int TILE_HEIGHT = 8;
6const int GAME_WIDTH = 320;
7const int GAME_HEIGHT = 200;
8const int MAP_WIDTH = GAME_WIDTH/TILE_WIDTH;
9const int MAP_HEIGHT = GAME_HEIGHT/TILE_HEIGHT - 1;
10
11const int FRAMES_PER_SECOND = 60;
12const double SECONDS_PER_FRAME = 1.0 / FRAMES_PER_SECOND;
13
14#endif