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

Refactor: Game class, Ship class, remove/improve comments

parent 7d85c81e
1 merge request!12Feature: Scoring system
......@@ -84,7 +84,7 @@ void Ship::collisionDetection()
SDL_Rect B = game->getEnemies()[j]->destionation;
if(SDL_IntersectRect(&A,&B,&result))
{
std::cout<<"Enemy hit"<<std::endl;
std::cout<<"Enemy hit +100"<<std::endl;
//Destroy enemy and bullet
game->killEnemy(j);
......
......@@ -123,7 +123,6 @@ void Game::clean(){
SDL_DestroyWindow(window);
SDL_DestroyRenderer(renderer);
SDL_QUIT;
std::cout << "Garbage Collected" <<std::endl;
}
bool Game::running(){
......
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