Commit Graph

879 Commits

Author SHA1 Message Date
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 aaa640055d Extra newline 2020-07-20 11:22:18 -04:00
Layla Marchant a1a67452fd Added the Japanese translation to Makefile.am 2020-07-20 11:21:52 -04:00
Layla Marchant 1f0f3e679d Formatting 2020-07-20 11:19:45 -04:00
The Diligent Circle 丸 dce97bf826
Merge pull request #8 from maruhiro-ver0/japanese
Translated in Japanese
2020-07-20 11:12:57 -04:00
maruhiro 86a13338d4 Translated in Japanese 2020-07-21 00:00:46 +09:00
Layla Marchant c213a1b897 Locked in the POT file to UTF-8.
Starfighter only supports UTF-8, so that needs to always be used.
2020-07-19 08:54:13 -04:00
Layla Marchant 0a056f0608 Updated translation files 2020-07-16 14:19:33 -04:00
Layla Marchant 8d730136f5 Bumped version number 2020-07-16 13:31:35 -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 aa356c6747 Bumped version number 2020-06-21 20:33:26 -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 7ef5382576 Updated continuous integration. 2020-04-02 13:26:55 -04:00
Layla Marchant 45bfe20aa0 Include autogen.sh in dist. 2020-04-02 11:20:58 -04:00
Layla Marchant b51443368c Fixed win32build.sh to not enable warnings (MXE is using an older GCC) 2020-04-02 11:10:42 -04:00
Layla Marchant 500969b4a8 Removed starfighter.sh. 2020-04-02 10:09:02 -04:00
Layla Marchant c5ca45ae8e Tweaked the readmme a bit. 2020-04-02 10:01:18 -04:00
Layla Marchant e01a540976 Bumped version number (2.1) 2020-04-02 09:54:28 -04:00
Layla Marchant 1d891d96c1 Better explanation. 2020-03-12 17:17:53 -04:00
Layla Marchant a81971e639 Added an option to disable warnings.
This is mainly so I can compile on my laptop (which has an old
version of GCC).
2020-03-12 16:42:37 -04:00
Layla Marchant cdf24b8c03 Misplaced comment. 2020-03-12 16:29:43 -04:00
Layla Marchant 7f329abc28 Added an autogen.sh script to simplify things. 2020-03-12 16:13:33 -04:00