Commit 1860090d authored by Valentin Bartschies's avatar Valentin Bartschies
Browse files

Placeholder to delete Aliens by hand, for now

parent 75feb070
......@@ -49,6 +49,17 @@ void calcGame() {
spawnPlayerProjectile();
}
if (IsKeyPressed(KEY_K)) { // Placeholder, deleting Aliens one by one with "K"
for (int i = ALIEN_ROWS - 1; i >= 0; i--) {
for (int j = 0; j < ALIEN_COLS; j++) {
if (aliens->instances[j][i]->alive) {
aliens->instances[j][i]->alive = false;
return;
}
}
}
}
laserCanon.x = laserCanonPos.x;
laserCanon.y = laserCanonPos.y;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment