Implemented and integrated title screen - now game crashes at launch, though
This commit is contained in:
10
game.cpp
10
game.cpp
@ -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);
|
||||
|
Reference in New Issue
Block a user