Commit dbd0d4c5 authored by Valentin Bartschies's avatar Valentin Bartschies
Browse files

Adding playerLives variable

parent 1860641a
......@@ -11,6 +11,8 @@
extern const int GAME_SCREEN_WIDTH, GAME_SCREEN_HEIGHT, FRAME_RATE, ALIEN_SIZE;
const int LASER_CANON_SPEED = 2;
int playerLives;
Projectile *playerProj;
Aliens* aliens;
......@@ -21,6 +23,7 @@ Rectangle gameBorder;
Vector2 laserCanonPos;
void initGame() {
playerLives = 3;
aliens = spawnAliens();
ALIEN_UP = LoadTexture("img/alien_up.png");
ALIEN_DOWN = LoadTexture("img/alien_down.png");
......
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