Commit Graph

525 Commits

Author SHA1 Message Date
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
Layla Marchant b689e2bcfb Fixed health bar. 2020-05-26 19:11:45 -04:00
Layla Marchant b517275bd3 Really fixed nerfing this time 2020-05-26 17:57:41 -04:00
Layla Marchant a2ad01846a Fixed nerfing in super-easy mode 2020-05-26 17:35:24 -04:00
Layla Marchant d8734e5625 Give plasma ammo with powerups in super-easy mode. 2020-05-26 16:47:14 -04:00
Layla Marchant 1a4e2ea71e Removed some weird, pointless code for when Kline is disabled.
The code caused Kline's systemPower to be restored to full when
disabled. This would have had no effect on the code; the systemPower
variable is only used to add the FL_DISABLED flag when it reaches
0, and restoring systemPower has no effect on this. This might have
been an attempt to make it impossible to disable Kline, but it
wouldn't have worked that way (it might simply not have been noticed
because disabling Kline would take a ridiculous amount of time and
is unlikely to happen without conscious effort).
2020-05-26 16:34:44 -04:00
Layla Marchant 9749684468 Allow grinding in super-easy mode. 2020-05-26 16:33:22 -04:00
Layla Marchant 5c9b69dd0c Added a super-easy difficulty. 2020-05-26 15:51:04 -04:00
Layla Marchant 1a00e0df2c Changed default difficulty from Normal to Easy. 2020-05-26 12:44:30 -04:00
Layla Marchant 305e9fb05d Restored original charge cannon behavior for Classic difficulty. 2020-05-26 12:42:00 -04:00
Layla Marchant d31b65f50e Removed wide-spread in Classic difficulty.
I had set it this way because it's how version 1.2 behaves, but
having experimented and looked at the 1.1 source code, the way I
changed it to is actually the original behavior! So, now it spreads
as in the original.
2020-05-26 00:57:41 -04:00
Layla Marchant 9863aef0ba Fixed the warp escape delay bug.
That's embarassing.
2020-05-23 21:10:45 -04:00
Layla Marchant e382adb08a Reorganized the Mac stuff. 2020-03-12 16:01:13 -04:00
Layla Marchant 0ec878c213 Merge branch 'macos' of github.com:igilham/starfighter into macos 2020-03-12 15:30:32 -04:00
Ian Gilham 5bd2e96ece
revert commenting of chdir on macOS 2020-03-12 16:59:40 +00:00
Layla Marchant 34c42e8aa2 Modified preprocessor directives to be better. 2020-03-12 11:45:33 -04:00
Ian Gilham c4f3a1f936
build: fix MacOS support
- Detect host OS
- Add CoreFoundation framework to linker flags
- Comment out a chdir which breaks the app on load
- Document how to work around locale building on a Mac

Fixes #3
2020-03-09 09:31:59 +00:00