Implemented and integrated title screen - now game crashes at launch, though

This commit is contained in:
2011-06-30 17:21:46 -04:00
parent d2322a7caf
commit ca60c61ce6
8 changed files with 59 additions and 28 deletions

3
game.h
View File

@ -17,7 +17,7 @@ using std::stack;
class Game : public GameState
{
public:
Game(SDL_Surface* display);
Game(stack<GameState*>* state_stack, SDL_Surface* display);
~Game();
bool init();
@ -27,7 +27,6 @@ class Game : public GameState
void iterate() {}
// event handlers
void on_exit();
void on_lbutton_down(int x, int y);
void on_rbutton_down(int mX, int mY);
void on_key_down(SDLKey sym, SDLMod mod, Uint16 unicode);