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:
parent
45470bb68c
commit
be2cc0f1c2
|
@ -7,7 +7,7 @@
|
||||||
# information. This file is offered as-is, without any warranty.
|
# information. This file is offered as-is, without any warranty.
|
||||||
|
|
||||||
AC_PREREQ([2.69])
|
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])
|
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
|
||||||
AC_CONFIG_SRCDIR([src/Starfighter.c])
|
AC_CONFIG_SRCDIR([src/Starfighter.c])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
|
@ -49,8 +49,14 @@ Initialises the player for a new game.
|
||||||
void player_init()
|
void player_init()
|
||||||
{
|
{
|
||||||
player.active = 1;
|
player.active = 1;
|
||||||
|
if (game.difficulty == DIFFICULTY_ORIGINAL) {
|
||||||
|
player.x = 200;
|
||||||
|
player.y = 200;
|
||||||
|
}
|
||||||
|
else {
|
||||||
player.x = screen->w / 2;
|
player.x = screen->w / 2;
|
||||||
player.y = screen->h / 2;
|
player.y = screen->h / 2;
|
||||||
|
}
|
||||||
player.speed = 2;
|
player.speed = 2;
|
||||||
player.systemPower = player.maxShield;
|
player.systemPower = player.maxShield;
|
||||||
player.face = 0;
|
player.face = 0;
|
||||||
|
|
Loading…
Reference in New Issue