Corrected the starting position of the player for Classic difficulty.

Modern Starfighter starts you in the center, but originally you started
at (200, 200). This matters particularly for boss fights, since since
the off-center start position meant you didn't start in the same vertical
position as the bosses.
This commit is contained in:
Layla Marchant 2020-12-23 20:38:25 -05:00
parent 45470bb68c
commit be2cc0f1c2
No known key found for this signature in database
GPG Key ID: 52FB5C20A8336782
2 changed files with 9 additions and 3 deletions

View File

@ -7,7 +7,7 @@
# information. This file is offered as-is, without any warranty.
AC_PREREQ([2.69])
AC_INIT([Project: Starfighter], [2.3.3], [diligentcircle@riseup.net], [starfighter])
AC_INIT([Project: Starfighter], [2.3.4-alpha], [diligentcircle@riseup.net], [starfighter])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AC_CONFIG_SRCDIR([src/Starfighter.c])
AC_CONFIG_HEADERS([config.h])

View File

@ -49,8 +49,14 @@ Initialises the player for a new game.
void player_init()
{
player.active = 1;
if (game.difficulty == DIFFICULTY_ORIGINAL) {
player.x = 200;
player.y = 200;
}
else {
player.x = screen->w / 2;
player.y = screen->h / 2;
}
player.speed = 2;
player.systemPower = player.maxShield;
player.face = 0;