summary refs log tree commit diff stats
path: root/gamestate.h
diff options
context:
space:
mode:
Diffstat (limited to 'gamestate.h')
-rw-r--r--gamestate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gamestate.h b/gamestate.h index f906bf6..36de42e 100644 --- a/gamestate.h +++ b/gamestate.h
@@ -6,9 +6,14 @@ class GameState : public State {
6 bool blocks[WIDTH][HEIGHT]; 6 bool blocks[WIDTH][HEIGHT];
7 Uint32 on; 7 Uint32 on;
8 Uint32 off; 8 Uint32 off;
9 Uint32 player_color;
10 int playerx, playery;
11 void move(int x, int y);
12 void wrap(int* x, int* y);
9 13
10 public: 14 public:
11 GameState(SDL_PixelFormat* fmt); 15 GameState(SDL_PixelFormat* fmt);
16 void input(SDLKey key);
12 void render(SDL_Surface* screen); 17 void render(SDL_Surface* screen);
13}; 18};
14 19