Commit Graph

439 Commits

Author SHA1 Message Date
onpon4 982d39278c Removed the dialog from the start of mission 26.
I feel it's unnecessary, and it can be an annoying wait if you're
struggling with Kline.
2015-03-08 17:56:38 -04:00
onpon4 912ff8b86c Modified script for mission 11 to better match the music. 2015-03-08 16:19:41 -04:00
onpon4 28cc1fcc6d Updated audio module. 2015-03-08 10:38:58 -04:00
onpon4 f54579a41f Reverted amount of stuff cloak fighter drops. 2015-03-07 22:41:15 -05:00
onpon4 da35b44179 Brought Kline's health in the final battle back down.
The increase worked well in mission 25, but not so much in mission
26.
2015-03-07 17:13:37 -05:00
onpon4 4b3cb9c1d3 Fixed some problems. 2015-03-07 15:34:47 -05:00
onpon4 0baa48e7ef Don't try to home in on immortal enemies.
It's annoying when this happens. There's no point in attacking an
immortal enemy.
2015-03-07 12:34:07 -05:00
onpon4 22fcdae8cc Several adjustments for difficulty purposes.
Started out adjusting prices, then ended up doing other things
while testing. Committing this now before I start doing other
random stuff!

But all of the changes are related to balancing difficulty, mostly
with prices, except for a couple bugfixes in the shop. Most notably:

* Ammo now costs $10, not $50. You no longer have to worry about
  saving ammo quite as much as a result.
* Plasma upgrades' cost is now calculated differently, and the result
  is slightly lower prices than before.
* Easy mode now grants the player more max ammo than other difficulties.
* Increasing max plasma ammo now costs less at the start, and increases
  in cost faster.
* You increase max plasma ammo by 25 at a time, not 10. (10 was just too
  small of a number.)
* Destroying enemy ships no longer gives you money. I found that, even
  in hard mode, I had *way* too much money coming in, and this cuts it
  down substantially. It also makes the shield bonus at the end of missions
  much more significant. To compensate for the loss of massive bonuses
  bosses used to give, these bosses now drop a lot more stuff.
* Kline has decreased health in his first encounter, and increased health
  in his last two encounters (the numbers have been reversed).
2015-03-07 12:19:35 -05:00
onpon4 a3efbc06cc Substantially increased the cost of plasma upgrades.
I feel these were extremely underpriced. $1000 for triple bullets?
That's dirt-cheap! Even in hard mode, I have no trouble getting that.
2015-03-07 09:42:24 -05:00
onpon4 9974848ce8 Moved some things. 2015-03-06 23:18:31 -05:00
onpon4 37befa8d3c Automatically sell things that are removed when buying new things.
Previously, when you bought something that took the place of something
you already had, such as buying a new secondary weapon, the old one
was just discarded. Now, it is sold, so you get money back for it
(the same as if you had manually sold everything).
2015-03-06 19:51:25 -05:00
onpon4 604b8644b5 Give the player full price when selling, not half price.
All the half-price penalty does is punish you for upgrading early
when it turns out that you need to change weaponry.
2015-03-06 16:30:33 -05:00
onpon4 09e1f1f72e Some adjustments to weapons.
* Modified the upgrade limits, to both be uniform and allow upgrades for
  every factor. (In fact, each one can be upgraded exactly once now.)
* Gave triple-spread weapon double damage.
* Micro rocket damage down from 7 to 6. Total damage is now equal to
  double rockets.
2015-03-06 16:25:12 -05:00
onpon4 dad8a41114 Improved shop code. 2015-03-06 15:22:10 -05:00
onpon4 19936f67c9 Substantially reduced the amount you can upgrade your plasma cannons.
I've tested this a lot, and I think these are good numbers to go by.
Plasma damage has been limited the most, because it is the upgrade
that quickly breaks the balance of the weapons, making the plasma
cannon the obviously most powerful weapon. I don't want this; the
powerful weapon should be the secondary weapon, while the plasma
cannon is the fast-firing weapon with much more ammo.

Basically, I want to make a tactic I found myself using, which was
to carefully keep my plasma power at maximum and take out most
enemies in one plasma shot, obsolete. As a result, missiles should
now be much more cost-effective (because even a single missile's
power of 15 greatly exceeds plasma's maximum power of 3*2=6).

None of these reductions in limits apply to easy mode; that mode
still has the old limits of 3 for min and 5 for max.
2015-03-06 12:36:02 -05:00
onpon4 cbfd6ff153 Make permanent upgrades cost more when you don't have the temporary ones.
The way it was previously, it was tactically beneficial to ignore
temporary upgrades, if you were going to do a permanent upgrade to
that level anyway. This is silly. Now, you don't lose anything by
making the temporary upgrade first. You just get lesser access to
the upgrade earlier on.
2015-03-06 11:48:45 -05:00
onpon4 50122bb0ef Don't charge more for increased firing rate.
I don't really understand why the original developer felt that
increased firing rate was so superior to the other upgrades as to
justify a far more inflated cost. Frankly, I find this upgrade to
be *inferior* to the power and output upgrades, for two reasons:
one, it doesn't increase the amount of damage inflicted per second
much; two, it increases plasma ammo usage as well, whereas the output
and power upgrades have no effect on plasma ammo usage. If anything,
firing rate upgrades should be *cheaper*, not more expensive!
2015-03-06 11:36:08 -05:00
onpon4 8a8da04560 Don't restrict enemies from passing through other enemies.
This was inconsistent and had no particular benefits. The only minor
benefit I can see is that it prevents smaller enemies from hiding
inside bigger enemies, and in my test run through Spirit, this only
happened once. Not at all significant compared to how incredibly
awkward the aliens look when they're acting as if they can't move
through other ships.

This commit also includes more function name changes and other minor
style fixes.
2015-03-06 09:37:21 -05:00
onpon4 7ed2d1a991 More name updates... 2015-03-05 10:47:30 -05:00
onpon4 3f4c3b894a Increased the damage of micro rockets.
3 damage? Really?! No wonder this weapon felt so weak compared to
the double rockets!

I've increased the damage to 7, which causes the total damage of the
weapon to be 35 (slightly more than the total damage of the double
rockets, which is 30).
2015-03-05 08:19:44 -05:00
onpon4 9efaff2783 Started renaming functions.
I'm going to completely reorganize this absolute mess of a codebase.
First thing is to fix the names so that it's more obvious what files
they're defined in. Second thing is to move around some functions,
and rename some of the cpp and h files, to organize them better.
I'm doing these both at once.
2015-03-04 21:30:23 -05:00
onpon4 aa187ef5f7 Prevent inclusion of headers multiple times, on an individual level.
Previously, Starfighter depended on a single check in Starfighter.h
to prevent this. Now, the proper code is in all header files.
2015-03-04 09:11:04 -05:00
onpon4 60783849e4 Removed the extro text from the credits.
I don't feel it's really necessary, and besides, it's annoying that
due to the way it's implemented it prevents you from doing anything
while it's shown.
2015-03-04 08:20:11 -05:00
onpon4 3d1ad2b674 Autosave when changing planets and when buying/selling.
Previously, it just saved after completing a mission, so it wasn't
something you could really rely on. Now it saves every time something
changes.
2015-03-03 19:28:15 -05:00
onpon4 cc6989328d Fixed the ammo limit of double missiles. 2015-03-03 09:25:32 -05:00
onpon4 87f67e02fa Added Sound and Silence music track.
Also made the first mission always play the same music.
2015-03-03 01:08:47 -05:00
onpon4 1f2ef8ac50 Dedicated autosave slot + much improved menu code.
I found it kind of odd to be able to manually save to the autosave
slot, *and* have no reliable way to even know what the autosave
slot is. I noticed that it's an actual problem when my brothers
played Starfighter; one of them used an autosave slot, and the
other unwittingly ended up erasing the first one's save because of
this. To fix this, I have replaced the behavior of allowing the
player to define a slot as autosave, with a dedicated autosave
slot.

While I was there, I had no choice but to vastly improve on this
game's *atrocious* menu system. Granted, I didn't do much more
than replace the magic numbers with enums, but it makes the code
much more clear and more easy to edit.
2015-03-02 23:32:48 -05:00
onpon4 39254f42bb If a powerup is currently useless, replace it with plasma ammo. 2015-03-02 21:21:31 -05:00
onpon4 eef98d1795 Changed the usual music volume to match the usual sound effect volume. 2015-03-02 10:51:17 -05:00
onpon4 cfeac68b36 Updated joystick controls to work well with most gamepads.
All gamepads I've come across work OK with button 2 or 3 as the primary
button, and button 1 or 4 as the secondary button. For the rest,
basically invariably, buttons 5 and 7 are the left shoulder buttons,
buttons 6 and 8 are the right shoulder buttons, button 9 is "Select"
or "Back", and button 10 is "Start". Based on this, I've changed
the gamepad controls to something that should work for most gamepads.

Also fixed some bad HTML in the documentation, and removed the
build instructions from there (they will soon be obsolete; I'm
working on replacing the hand-made Makefile with GNU Autoconf).
2015-03-01 19:59:27 -05:00
onpon4 9959c47f98 Updated copyright notices on all files based on git-blame. 2015-03-01 15:37:32 -05:00
onpon4 288d96a39b Include SDL headers properly.
Using <SDL/SDL.h>, or in this case <SDL2/SDL.h>, and others like this
is not the proper way to include SDL headers. The proper way is to
pass the -lSDL2 flag to the compiler. The place I put it might be
awkward, but I'm planning to replace this hand-written makefile with
Autoconf/Automake scripts, anyway.
2015-03-01 14:26:14 -05:00
onpon4 23d95f99b6 Fixed a problem. 2015-03-01 04:48:47 -05:00
onpon4 23a92bb594 Define compile-time options in defs.h, unless already defined. 2015-03-01 04:30:11 -05:00
onpon4 8c51811b3e More style corrections 2015-02-28 21:49:56 -05:00
onpon4 6d939729a3 Minor style corrections 2015-02-28 21:49:06 -05:00
onpon4 f620334510 Caused charge cannon damage to be reduced in a different way. 2015-02-28 20:20:36 -05:00
onpon4 224b3ea8b1 Increased max missiles for double homing to 15.
It's incredibly silly for it to be 10; what's the advantage of the
double homing missile launcher over the regular homing missile launcher
otherwise? It's just much slower and less versatile. Now it should
be slightly better, because you can effectively shoot 30 missiles
total, instead of just 20.

(Micro homing missiles are different; the advantage of having several
weak missiles instead of a smaller numer of strong missiles is
actually quite significant.)
2015-02-28 19:06:11 -05:00
onpon4 98bd62be46 Made the multi-homing missiles cheaper.
These weapons are severely overpriced. They should be expensive,
but not *that* expensive.
2015-02-28 19:01:18 -05:00
onpon4 901000245b Changed Klein's position in the final battle.
And something else I don't remember.
2015-02-28 18:56:24 -05:00
onpon4 2bac42ce61 Don't spawn transports if you can't benefit from bonuses. 2015-02-28 15:22:27 -05:00
onpon4 86a8ca4efa Fixed Uranus boss being placed right on top of you.
Such that it's riding Uranus, you could say. Unfair and annoying.
2015-02-28 12:34:48 -05:00
onpon4 1c691323d0 When you move slower or faster in mission 18, don't make enemies do the same. 2015-02-28 12:10:51 -05:00
onpon4 03dfdd69fb Removed enemy ships with missiles from the cargo capture mission. 2015-02-28 10:32:20 -05:00
onpon4 81663aca52 Fixed not being able to complete missions after destroying interceptions.
There was a check that was supposed to prevent completing missions on
death, but it also prevented completing missions after an area was
finished. This was in particular a problem in interceptions, where
rescuing slaves after destroying interceptions didn't have any effect
on the slave rescue mission.
2015-02-28 10:03:27 -05:00
onpon4 2eaa3b94c2 Completely eliminate the chance of grinding at interceptions.
It was previously just ineffective. Now it's impossible.

The reason I'm doing this is when you *can* grind (in this case, by
constantly getting free plasma and selling it), it kind of feels
like an obligation to do so.

It's still possible to grind within missions whose progress depends
on your pace, which aren't timed and keep generating more enemies
until you win. Namely: the missile boat mission, the miner mission,
and the third boss. (There might be others.) However, grinding in
these situations is quite dangerous and likely to take away the much
larger shield bonus at the end, and plus if you mess up when trying
to do this you're set back quite a bit, so I think these are sufficiently
worthless activities that no one will do them. (I never did.)
2015-02-28 09:45:26 -05:00
onpon4 cc68479156 Deny the Supercharge on bosses, except when on easy difficulty.
A supercharge at this point can suddenly make bosses much easier
(especially the case with the Star Killer). This kind of takes away
the tension, so it's undesired. (It's fine for Easy difficulty,
because it's possible to take in a Supercharge from an earlier level
anyway.)
2015-02-28 09:22:15 -05:00
onpon4 edda015169 Fixed shop's min rocket ammo for double/micro missiles. 2015-02-28 08:47:26 -05:00
onpon4 91fa93b448 Reduced charger's max charge, make it fire when it reaches max.
The original charge cannon is so overpowered it's ridiculous. The
strongest weapon in the game, unlimited ammo, and the only setback
it has is that you need to charge it a bit. The lack of balance
obsoletes the laser weapon, which is fine, but it also obsoletes
homing missile weapons, *including* ones that are newer and more
expensive than the charge cannon!

Now, it's much more balanced. You actually need to shoot the thing
before it hits max (or have your target in sight when it does),
rather than being able to just hold the button at max forever and
release when optimal like you previously could. Basically, the charge
cannon is still the weapon which does the most damage, but it's now
much harder to use. Incidentally, not only should homing missiles
be a sensible option now, even the laser cannon has a place after
the charge cannon becomes available.
2015-02-28 08:36:04 -05:00
onpon4 26a82a6385 Some code cleanup.
Fixed some cases where I put spaces instead of tabs earlier, and
changed all cases of "weapons[0]" with "weapons[W_PLAYER_WEAPON]".
2015-02-28 08:15:53 -05:00
onpon4 71abee2a16 Fixed camera jerking in a direction really fast. 2015-02-27 23:14:33 -05:00
onpon4 ee9ad14584 Always show normal engine when max shield is 1. 2015-02-27 22:22:27 -05:00
onpon4 66c413f913 Don't drop shield bonuses in Nightmare difficulty. 2015-02-27 22:16:53 -05:00
onpon4 c9fb4e793c Remove the Super Charge effect after leaving battle, unless on easy mode. 2015-02-27 22:03:06 -05:00
onpon4 d44f3f9fcc Money earned from kills now counts toward collection missions.
This prevents the bizarre situation in these missions where avoiding
money allows you to get more money because of the mission never ending.
2015-02-27 20:09:07 -05:00
onpon4 01b5b73dba Fixed defaulting to "easy" difficulty. 2015-02-27 19:52:55 -05:00
onpon4 c03c2f404c Added Enter as a possible fire key.
Not meant for use during actual gameplay, but rather for the menus.
2015-02-27 19:23:19 -05:00
onpon4 b87a432653 Make cargo indestructible in easy difficulty.
Avoiding destroying the cargo is rather tough, so it's really
not appropriate for easy difficulty.
2015-02-27 18:45:21 -05:00
onpon4 98da910493 Added some buffs for easy difficulty and some nerfs for nightmare difficulty. 2015-02-27 18:11:59 -05:00
onpon4 d4d64dda6b Corrected bad use of fscanf.
In most cases, this has also resulted in limits being lifted. (The
only place I haven't done this is for planets in intermission.cpp,
but I think I'll take away that 10-planet limit as well.)
2015-02-27 17:59:25 -05:00
onpon4 e6c59d2a24 Some cleanup, bumped version number. 2015-02-27 14:53:23 -05:00
onpon4 e6f8b3a65f Removed support for the old cheats.
It was broken, and I don't think it's worth fixing.
2015-02-27 13:35:47 -05:00
onpon4 a5aaba379f Updated cutscenes, fixed bug with scrolling levels 2015-02-27 09:30:30 -05:00
onpon4 5965f44bb1 Made camera centering more gentle. 2015-02-27 01:10:27 -05:00
onpon4 8e753d9525 Added code to center the camera when not moving. 2015-02-27 00:26:29 -05:00
onpon4 4a9c99f4bc Fixed using smx where I should have used smy. 2015-02-26 23:31:26 -05:00
onpon4 02c93d8b52 Added a separate constant for each view border direction. 2015-02-26 23:28:31 -05:00
onpon4 c404e3611e Fixed edges of the screen slowing you down.
And unlike a fix I previously did, this one is perfect. Rather than
fiddling with ssx and ssy, I just added some new variables, smx and
smy.
2015-02-26 23:23:08 -05:00
onpon4 775be7afb4 Fixed the player's 1 shield in Nightmare difficulty not being called low 2015-02-26 22:35:49 -05:00
onpon4 93d6195a31 Removed Grey Sector. Changed random music selection to always see all of them. 2015-02-26 22:30:26 -05:00
onpon4 3d28058027 Added in a variation of the "Humans do it better" cheat code. 2015-02-26 22:16:45 -05:00
onpon4 4319051fd0 Removed Big Boss. (Just doesn't feel like it fits.) 2015-02-26 21:39:11 -05:00
onpon4 182ea70ba1 Removed gameplay option, have different max shield based on difficulty 2015-02-26 20:52:20 -05:00
onpon4 bf844b25eb More music 2015-02-26 19:55:52 -05:00
onpon4 9d43547982 Small fix to credits. 2015-02-26 19:27:38 -05:00
onpon4 491bb2641b Removed choice of targeting systems.
This is silly. I can see that someone decided to restrict targeting
to one ship as a difficulty setting, but that's not a very good way
to achieve different levels of difficulty.

Also added more music and slowed down RE.ogg.
2015-02-26 18:46:45 -05:00
onpon4 9b814979f9 Added more music. 2015-02-26 15:52:18 -05:00
onpon4 fecf957cd5 Started adding some new music, fixed ship aiming off-screen at the end. 2015-02-26 14:18:27 -05:00
onpon4 f385c9448e Upgraded to GPLv3. 2015-02-26 11:20:36 -05:00
onpon4 555ee4fe15 Removed support for PAK files.
These are really unnecessary, and their support makes converting
the music from MOD to Ogg Vorbis more complicated than it needs to
be.
2015-02-26 11:09:28 -05:00
onpon4 ed621bf3a4 Changed from 48000 Hz to 44100 Hz.
48000 Hz was causing problems with the sound. Who chose such an odd
number?
2015-02-26 10:22:22 -05:00
Guus Sliepen 36f0e7a85d Merge remote-tracking branch 'origin/sdl2'
Conflicts:
	src/player.cpp
2014-05-13 16:22:11 +02:00
Julian e44c25018a Fixed indentation. 2014-03-12 15:18:41 -04:00
Julian b1ae2a4128 Added the changes I proposed a while back.
So now, when currentGame.gamePlay is set to GAMEPLAY_ONPON:
- You start with 50 shield, and never gain any increased capacity.
- You can't charge the charge cannon and shoot at the same time; if
  you shoot the plasma gun, the charge cannon shoots as well (as if
  you had released the charge key).

I didn't add in the feature to keep the view from slowing you down,
because the method I used was imperfect anyway.
2014-03-12 14:35:24 -04:00
Guus Sliepen b285643a82 Fix color keys. 2013-10-01 14:33:33 +02:00
Guus Sliepen 593ea01386 Initial conversion to SDL2. 2013-09-30 16:52:43 +02:00
Guus Sliepen c357c28966 Ensure the joystick is usable in the title screen. 2013-07-13 15:10:29 +02:00
Guus Sliepen 8810b090fa Remove external files for missions, shop items, aliens and weapons.
The source code contains routines to initialise all these resources, but also
functions to load from and store to external files.  Support for external files
has now been removed; this removes a potential difference between compiling
with or without USEPAK, and makes it easier to change missions in the code.
2013-07-11 15:29:37 +02:00
Guus Sliepen bd4a449e10 Rename code/ to src/. 2013-07-11 14:24:37 +02:00