From be2cc0f1c2c855885c988e6f63499057be668896 Mon Sep 17 00:00:00 2001 From: Layla Marchant Date: Wed, 23 Dec 2020 20:38:25 -0500 Subject: [PATCH] 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. --- configure.ac | 2 +- src/player.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 8ffd209..bf710b3 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/src/player.c b/src/player.c index e2e5c04..b58fec1 100644 --- a/src/player.c +++ b/src/player.c @@ -49,8 +49,14 @@ Initialises the player for a new game. void player_init() { player.active = 1; - player.x = screen->w / 2; - player.y = screen->h / 2; + 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;