From cd48894563052baeddff64f6bbc13ccc7fa6e081 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 19 Feb 2015 20:10:11 -0500 Subject: Added CRT mesh! Also a character sprite, changed up the map file format, fixed some shader bugs --- src/mapview.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mapview.h') 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; const int MAP_HEIGHT = GAME_HEIGHT/TILE_HEIGHT; const int FRAMES_PER_SECOND = 60; +const double SECONDS_PER_FRAME = 1.0 / FRAMES_PER_SECOND; enum direction_t { up, left, down, right @@ -47,12 +48,17 @@ class MapView : public State { list down_collisions; Texture* bg = NULL; + Texture* chara; + Texture* tiles; bool holding_left = false; bool holding_right = false; + bool holding_down = false; mob_t* player; Map* curMap; + + int animFrame = 0; }; #endif -- cgit 1.4.1