From 024d098c686ae971176332d91db91582ad353c17 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 18 Jun 2009 16:50:19 -0400 Subject: Added movement --- gamestate.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gamestate.h') 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 { bool blocks[WIDTH][HEIGHT]; Uint32 on; Uint32 off; + Uint32 player_color; + int playerx, playery; + void move(int x, int y); + void wrap(int* x, int* y); public: GameState(SDL_PixelFormat* fmt); + void input(SDLKey key); void render(SDL_Surface* screen); }; -- cgit 1.4.1