Skip to content
Snippets Groups Projects
Commit 3def29dc authored by Lenny Siol's avatar Lenny Siol
Browse files

Update: Game class, make ship control more responsive.

parent 2d494158
No related branches found
No related tags found
2 merge requests!19Finish polishing,!18Feature: Polish
......@@ -61,12 +61,12 @@ void Game::handleEvent(){
SDL_Event event;
SDL_PollEvent(&event);
switch(event.type){
case SDL_QUIT:
isRunning = false;
break;
case SDL_KEYDOWN:
ship->handleControls(SDL_GetKeyboardState(NULL));
break;
case SDL_QUIT:
isRunning = false;
break;
default:
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment