Commit Graph

541 Commits

Author SHA1 Message Date
Layla Marchant b3252b3ea7
Corrected damage for micro rockets and spread plasma for Classic difficulty 2020-12-26 14:30:40 -05:00
Layla Marchant 69430b7a2a
Added an option to compile a binary that will use the original music.
We can't distribute the original music, but adding support for it in
as a compile-time option will enable modding the game to look and
feel like the original without having to edit the source code.
2020-12-26 13:33:15 -05:00
Layla Marchant 5b29033700
Changed our credits to "The Diligent Circle". 2020-12-26 00:10:10 -05:00
Layla Marchant 135a64e178
Reposition stars on resize 2020-12-26 00:07:51 -05:00
Layla Marchant 46ffc40592
Made Kline Venus starting position relative to screen size 2020-12-25 23:47:02 -05:00
Layla Marchant 0112d8074f
Returned Classic difficulty start positions to relative. 2020-12-25 23:43:25 -05:00
Layla Marchant f209058367
Allow switching to Concentrate mode even with Super Charge in Classic 2020-12-25 22:25:40 -05:00
Layla Marchant 6d71317514
Implemented emulation of smaller Kline health bars.
This makes it so that Kline's one health bar is displayed as many
smaller health bars, like the original, for Classic difficulty.
2020-12-25 21:46:58 -05:00
Layla Marchant 8ca1cdc42c
Made it so that the game doesn't go unresponsive, made credits recenter
There was a period of time just after the defeat of Kline that the
game wasn't responding to input, causing the OS to panic. Corrected
this, and also made it so that resizing the window adjusts the
positioning of the credits appropriately.
2020-12-25 20:06:41 -05:00
Layla Marchant 51a1b67841
Made the start of the Venus Kline fight the same as the original in Classic difficulty 2020-12-25 19:40:27 -05:00
Layla Marchant b61e5e7a32
Don't remove FL_CIRCLES.
We're now depending on the code not caring that FL_CIRCLES is there.
2020-12-24 15:50:37 -05:00
Layla Marchant 0c24aa45c8
Adjusted the way FL_ESCAPED is added. 2020-12-24 15:47:45 -05:00
Layla Marchant 1625c54ee5
Added a check so that FL_CIRCLES doesn't take effect while leaving sector 2020-12-24 15:40:19 -05:00
Layla Marchant 139940e8b2
Made more smoke come out at critical shield 2020-12-23 21:19:33 -05:00
Layla Marchant be2cc0f1c2
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.
2020-12-23 20:38:25 -05:00
Layla Marchant 45470bb68c
Converted the rest of trailing &&. 2020-11-22 23:33:26 -05:00
Layla Marchant 1a3e801271
Reformatted conditionals with trailing || and && 2020-11-22 23:03:38 -05:00
Layla Marchant 86f6fc597f
Whitespace 2020-10-28 10:45:35 -04:00
Layla Marchant 4cd8b15d8f
Adjusted shop stuff to make better use of space.
This has involved:

* Enlarging the bottom three panels and squeezing them closer together
* Adjusting the way the item description shows
2020-10-24 15:45:07 -04:00
Layla Marchant b9d64bb21c
Removed an unnecessary trailing newline.
Should be harmless since empty strings are ignored in
radio_getRandomMessage, but it's still supposed to be in a form
that uses \n only as necessary; the trailing newline was a mistake.
2020-10-24 14:49:15 -04:00
Layla Marchant 0e666b2d20
Fixed some remaining ableism. 2020-09-15 13:13:58 -04:00
Layla Marchant df066d4ad4 Fixed nongnu.org links. 2020-09-05 18:21:26 -04:00
Layla Marchant 3e2795a231 Fixed spelling errors. 2020-08-27 10:14:45 -04:00
Layla Marchant b25efb8595 "stupid" -> "foolish" 2020-08-26 12:06:34 -04:00
Layla Marchant 8d136e4cea Merge branch 'main' of github.com:pr-starfighter/starfighter into main 2020-08-04 12:24:33 -04:00
Layla Marchant b547ec5989 Replaced AUDIO_S16 witht AUDIO_S16SYS. 2020-08-04 12:23:54 -04:00
Alistair Findlay 2448a043e1
spelling fix: persuit -> pursuit 2020-08-01 05:48:31 +10:00
Layla Marchant 59c21a355e Fixed too small of a limit for mission objective descriptions.
It was causing rendering bugs (due to the lack of a \0 terminator)
with the Japanese translation.
2020-07-27 13:44:35 -04:00
Layla Marchant adc85f1bec Better syntax 2020-07-27 12:15:35 -04:00
Layla Marchant cf7a82515d Fixed double-controls. 2020-07-27 11:41:40 -04:00
Layla Marchant ca11cdea27 Implemented use of the game controller SDL API.
Fixes #7

Designed to use the game controller API if possible, or fall back
to the regular joystick API otherwise.

This also makes it so that all connected controllers can be used,
rather than just the first one.
2020-07-27 11:29:35 -04:00
Layla Marchant 21e16c157b Restored the old digital conversion of analog input for main menu.
This allows using an analog stick to control the main menu once
again. Part of #7.
2020-07-27 10:36:10 -04:00
Layla Marchant eb2c61cd04 Added a check for if the breakable byte is the start of char.
Fixes #9

Thanks to https://gamedev.net/forums/topic/707591-could-anyone-help-with-utf-8-line-breaking-in-c/5429529/
for helping with how to do this.
2020-07-27 10:12:47 -04:00
Layla Marchant 6e8d32fd64 Fixed a small discrepancy with the Venus mission in Classic difficulty
Since the original actually constantly had you drain Kline's health
to zero and then re-adjusted it, there were effectively stop points
limiting the amount of damage you could do to the amount designated
for the current stage. This has been simulated by setting the shield
to the proper amount of shield for the respective stage if the
difficulty is DIFFICULTY_ORIGINAL.
2020-07-27 00:37:04 -04:00
Layla Marchant 70f5112100 Revert "i - 1 instead of i for breaking text."
This reverts commit 5bc3657824.
2020-07-25 10:58:53 -04:00
Layla Marchant 91dcd81268 Revert "???"
This reverts commit 5fa977fb90.
2020-07-25 10:58:42 -04:00
Layla Marchant 5fa977fb90 ??? 2020-07-20 15:11:01 -04:00
Layla Marchant 5bc3657824 i - 1 instead of i for breaking text.
That's the right character to pick. It's actually still broken; will
look into more later. Will also need to make it so that it ignores
leading whitespace.
2020-07-20 14:09:06 -04:00
Layla Marchant 0201eddbe5 Added a setting for controlling language.
It doesn't seem to work and I don't understand why. It's as if
gettext is ignoring the setting.
2020-07-20 13:10:25 -04:00
Layla Marchant facc34b7ba Factored in radio life to the script radio messages.
This ensures that series of radio messages are stiched together
properly. An exception was given for the first Kline encounter;
timing stays the same for that one simply to make sure the music
cue isn't ruined.
2020-07-20 12:03:00 -04:00
Layla Marchant 82b35c5ce0 Added a text speed option, improved cutscene controls.
This is a pretty big one! Someone I know suggested that I should
make the textboxes able to stay on the screen for longer, so I've
added an option for that! In the process I also changed Fire and
Altfire to advance to the next box immediately (rather than skipping
outright), so that if you select a slower speed you can still make
the text go to the next one after you're finished reading one.
2020-07-16 13:22:16 -04:00
Layla Marchant 7b6eb5501f Fixed a couple typos. 2020-07-16 11:51:10 -04:00
Layla Marchant 9a5076bb93 Fixed some bugs with gamepad controls.
Included a bug where axis controls got stuck after the end of a mission,
and one where hat controls caused massive movement speed.
2020-07-16 11:43:45 -04:00
Layla Marchant 13a2f0fba5 Added proper analog support. 2020-06-21 22:19:28 -04:00
Layla Marchant afccdb741f Removed use of axes other than 0 and 1. 2020-06-06 15:23:07 -04:00
Layla Marchant b3856c6a3c Added a difficulty indicator to save slots, removed old format support 2020-05-26 22:20:38 -04:00
Layla Marchant 9a627a77bb Fixed double-cargo pods in Ceradse 2020-05-26 20:34:47 -04:00
Layla Marchant 97bcd873c7 Fixed Kline 2020-05-26 20:25:50 -04:00
Layla Marchant b73a56e587 Added some nerfs for the Mars mission in super-easy mode.
This makes mines much less frequent and spreads the asteroids out
much more. The other super-easy mode nerfs don't work on Mars, so
these custom nerfs are necessary to keep the difficulty consistent.
2020-05-26 20:03:42 -04:00
Layla Marchant 5e1892235c Less extreme buff 2020-05-26 19:19:20 -04:00