summary refs log tree commit diff stats
path: root/src/mapview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapview.h')
-rw-r--r--src/mapview.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mapview.h b/src/mapview.h index 70ffb3b..06309e3 100644 --- a/src/mapview.h +++ b/src/mapview.h
@@ -16,6 +16,7 @@ const int MAP_WIDTH = GAME_WIDTH/TILE_WIDTH;
16const int MAP_HEIGHT = GAME_HEIGHT/TILE_HEIGHT; 16const int MAP_HEIGHT = GAME_HEIGHT/TILE_HEIGHT;
17 17
18const int FRAMES_PER_SECOND = 60; 18const int FRAMES_PER_SECOND = 60;
19const double SECONDS_PER_FRAME = 1.0 / FRAMES_PER_SECOND;
19 20
20enum direction_t { 21enum direction_t {
21 up, left, down, right 22 up, left, down, right
@@ -47,12 +48,17 @@ class MapView : public State {
47 list<collision_t> down_collisions; 48 list<collision_t> down_collisions;
48 49
49 Texture* bg = NULL; 50 Texture* bg = NULL;
51 Texture* chara;
52 Texture* tiles;
50 53
51 bool holding_left = false; 54 bool holding_left = false;
52 bool holding_right = false; 55 bool holding_right = false;
56 bool holding_down = false;
53 mob_t* player; 57 mob_t* player;
54 58
55 Map* curMap; 59 Map* curMap;
60
61 int animFrame = 0;
56}; 62};
57 63
58#endif 64#endif