Commit 5b9c185d authored by Valentin Bartschies's avatar Valentin Bartschies
Browse files

Corrected canon heigh & float casting

parent d1d9c91e
......@@ -27,8 +27,8 @@ void initGame() {
ALIEN_SHOOT = LoadTexture("img/alien_shoot.png");
CANON_TEXTURE = LoadTexture("img/canon.png");
laserCanonPos = (Vector2) {(float) GAME_SCREEN_WIDTH / 2, (float) GAME_SCREEN_HEIGHT - (CANON_TEXTURE.width * 2)};
laserCanon = (Rectangle) {(float) laserCanonPos.x, (float) laserCanonPos.y, CANON_TEXTURE.width, CANON_TEXTURE.height};
laserCanonPos = (Vector2) {(float) GAME_SCREEN_WIDTH / 2, (float) GAME_SCREEN_HEIGHT - (CANON_TEXTURE.height * 2)};
laserCanon = (Rectangle) {(float) laserCanonPos.x, (float) laserCanonPos.y, (float) CANON_TEXTURE.width, (float) CANON_TEXTURE.height};
gameBorder = (Rectangle) {0.0, 0.0, (float) GAME_SCREEN_WIDTH, (float) GAME_SCREEN_HEIGHT};
}
......
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