Commit 28c1c4e0 authored by Valentin Bartschies's avatar Valentin Bartschies
Browse files

Fixing indentations

parent 113a090c
......@@ -38,9 +38,9 @@ void initGame() {
void calcGame() {
if (IsKeyDown(KEY_LEFT)) {
if (laserCanonPos.x > 0) {
laserCanonPos.x -= LASER_CANON_SPEED;
}
if (laserCanonPos.x > 0) {
laserCanonPos.x -= LASER_CANON_SPEED;
}
} else if (IsKeyDown(KEY_RIGHT)) {
if (laserCanonPos.x < (GAME_SCREEN_WIDTH - 1) - CANON_TEXTURE.width) {
laserCanonPos.x += LASER_CANON_SPEED;
......@@ -58,11 +58,11 @@ void calcGame() {
if (aliens->projectiles[0] || aliens->projectiles[1] || aliens->projectiles[2]) {
for (int i = 0; i < 3; i++)
{
if (playerCollisionDetection(aliens->projectiles[i]))
{
free(aliens->projectiles[i]);
aliens->projectiles[i] = NULL;
}
if (playerCollisionDetection(aliens->projectiles[i]))
{
free(aliens->projectiles[i]);
aliens->projectiles[i] = NULL;
}
}
}
......
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