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

View File

@ -7,8 +7,8 @@
int Game::NODE_RADIUS = 10;
Game::Game(SDL_Surface* display)
: GameState(display)
Game::Game(stack<GameState*>* state_stack, SDL_Surface* display)
: GameState(state_stack, display)
{
background = NULL;
}
@ -83,12 +83,6 @@ void Game::render()
}
void Game::on_exit()
{
throw StateExit();
}
void Game::on_lbutton_down(int x, int y)
{
data.do_vertex(x, y, NODE_RADIUS);