The ESCAPE key now closes the hearts.cpp game

This commit is contained in:
Mathias Wagner 2023-10-01 21:10:39 +02:00
parent 18f70f2198
commit 6e7f5fffc8
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -58,6 +58,9 @@ int main(int argc, char *argv[]) {
case SDLK_d: case SDLK_RIGHT:
ballX+=3;
break;
case SDLK_ESCAPE:
gameRunning = false;
break;
}
}