From 6f768c88a6bde96ab3bcb82aa0abf2048e1bc386 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Thu, 12 Mar 2015 22:14:07 -0400 Subject: [PATCH] Added some starting money for nightmare difficulty. As a result, you're not stuck with the weakest weapon in the game anymore. You have to choose between the double rockets, plasma permanently upgraded in one area, plasma temporarily upgraded in some areas, or some combination. --- Makefile | 2 +- src/Starfighter.h | 2 +- src/{bullets.cpp => bullet.cpp} | 0 src/{bullets.h => bullet.h} | 0 src/game.cpp | 1 + src/title.cpp | 2 +- 6 files changed, 4 insertions(+), 3 deletions(-) rename src/{bullets.cpp => bullet.cpp} (100%) rename src/{bullets.h => bullet.h} (100%) diff --git a/Makefile b/Makefile index 7013b6a..98fb631 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CXXFLAGS ?= -O2 -Wall -g CXXFLAGS += `pkg-config --cflags sdl2 SDL2_image SDL2_mixer` LIBS = `pkg-config --libs sdl2 SDL2_image SDL2_mixer` -OBJS = alien.o audio.o bullets.o cargo.o collectable.o comms.o debris.o events.o explosions.o game.o globals.o graphics.o init.o intermission.o loadSave.o messages.o misc.o missions.o player.o resources.o script.o shop.o Starfighter.o title.o weapons.o +OBJS = alien.o audio.o bullet.o cargo.o collectable.o comms.o debris.o events.o explosions.o game.o globals.o graphics.o init.o intermission.o loadSave.o messages.o misc.o missions.o player.o resources.o script.o shop.o Starfighter.o title.o weapons.o VERSION = 1.3-dev PROG = starfighter diff --git a/src/Starfighter.h b/src/Starfighter.h index f074026..0ec2187 100644 --- a/src/Starfighter.h +++ b/src/Starfighter.h @@ -37,7 +37,7 @@ along with this program. If not, see . #include "alien.h" #include "audio.h" -#include "bullets.h" +#include "bullet.h" #include "cargo.h" #include "collectable.h" #include "comms.h" diff --git a/src/bullets.cpp b/src/bullet.cpp similarity index 100% rename from src/bullets.cpp rename to src/bullet.cpp diff --git a/src/bullets.h b/src/bullet.h similarity index 100% rename from src/bullets.h rename to src/bullet.h diff --git a/src/game.cpp b/src/game.cpp index ff83ea7..0bfdfe2 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -106,6 +106,7 @@ void newGame() currentGame.maxPlasmaOutput = 1; currentGame.maxPlasmaDamage = 1; currentGame.maxRocketAmmo = 5; + currentGame.cash = 6000; break; default: player.maxShield = 50; diff --git a/src/title.cpp b/src/title.cpp index 408a1fe..dea10e2 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -72,7 +72,7 @@ static void createDifficultyMenu() else if (currentGame.difficulty == DIFFICULTY_HARD) textSurface(TS_DIFFICULTY, "DIFFICULTY - HARD", -1, 370, FONT_WHITE); else if (currentGame.difficulty == DIFFICULTY_NIGHTMARE) - textSurface(TS_DIFFICULTY, "DIFFICULTY - NIGHTMARE", -1, 370, FONT_WHITE); + textSurface(TS_DIFFICULTY, "DIFFICULTY - NIGHTMARE!", -1, 370, FONT_WHITE); else textSurface(TS_DIFFICULTY, "DIFFICULTY - NORMAL", -1, 370, FONT_WHITE); }