summary refs log tree commit diff stats
path: root/gamestate.h
blob: 36de42e5f390001f0326a39fd741ef69dbe51460 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef GAMESTATE_H
#define GAMESTATE_H

class GameState : public State {
	private:
		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);
};

#endif