summary refs log tree commit diff stats
path: root/gamestate.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2009-06-18 16:50:19 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2009-06-18 16:50:19 -0400
commit024d098c686ae971176332d91db91582ad353c17 (patch)
tree0715eac2b6a34029f35ae5c97116c48ce39c70ce /gamestate.h
parent10ccc825777c7ce8797fc58e1484dd93f19368cf (diff)
downloadmazeoflife-024d098c686ae971176332d91db91582ad353c17.tar.gz
mazeoflife-024d098c686ae971176332d91db91582ad353c17.tar.bz2
mazeoflife-024d098c686ae971176332d91db91582ad353c17.zip
Added movement
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