1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-17 23:20:19 +01:00
Commit graph

156 commits

Author SHA1 Message Date
Muzychenko Andrey
f3e4211226 Improved frame time diagnostic tool.
Split overdraw palette from frame time tool.
2021-11-11 14:30:56 +03:00
Muzychenko Andrey
16b527e3cf Added AddressSanitizer to Windows build config, disabled by default.
VS older that 2019 do not support it.
Game passes ASan checks at the moment of writing.
2021-11-09 16:50:09 +03:00
Muzychenko Andrey
683204519c Added UTF-8 path support on Windows.
Ref issue #82.
2021-11-06 19:22:56 +03:00
Muzychenko Andrey
ecdf802d68 Added game data loading from user folder (SDL_GetPrefPath).
Ref issue #80.
2021-11-05 10:16:27 +03:00
Muzychenko Andrey
dc00dbde0d Fixed bug with mission accept scores.
Ref issue #81.
2021-11-04 18:46:04 +03:00
Muzychenko Andrey
862fe13dcd Added game controller exit shortcut: back/select when paused.
Ref issue #79.
2021-11-01 09:09:19 +03:00
Muzychenko Andrey
6c299ed103
Updated plans in readme 2021-10-30 12:51:24 +03:00
Muzychenko Andrey
fc1975a607 Fixed bug: dialogs not shown when main menu is hidden.
Ref issue #76.
2021-10-30 12:34:17 +03:00
Muzychenko Andrey
e61bbd634c Added fallback to SW SDL renderer. 2021-10-30 10:12:30 +03:00
Muzychenko Andrey
917b68d630 Added NN scaling for PINBALL2.MID.
It does not scale well.
Wii port should rather use non-compressed PB_MSGFT_bin.
2021-10-28 13:03:05 +03:00
MaikelChan
46d3ae324c
Added 3DS port to README. (#74) 2021-10-28 07:53:57 +03:00
Iscle
d27740bd38
Fix compiler warnings (#73) 2021-10-26 17:15:45 +03:00
Muzychenko Andrey
cfd30419c2 Added Windows XP build configuration.
Removed unused SDL inits.
2021-10-26 17:11:53 +03:00
Muzychenko Andrey
3ec96b84ad PresentVScreen: fixed sub pixel offset.
SDL<2.0.10 uses crude approximation.
2021-10-25 08:03:30 +03:00
MaikelChan
34cb964ea5
Change texture filtering without restarting. (#67) 2021-10-25 06:42:36 +03:00
MaikelChan
5789492021
Adjusted screen coordinates so menu doesn't overlap (#66)
* Optimized final blit to the screen render target.

When bumping the table, instead of offseting the table pixels by CPU, just memcpy all the pixels to vScreenTex once, and then render two separate quads from that texture: one for the board and the other for the sidebar. Then change the coordinates of the board quad when bumping.

* Main menu bar doesn't cover game area

* Forgot to also take into account changing UI scale.
2021-10-24 18:38:23 +03:00
MaikelChan
38cf08e298
Optimized final blit to the screen render target. (#65)
When bumping the table, instead of offseting the table pixels by CPU, just memcpy all the pixels to vScreenTex once, and then render two separate quads from that texture: one for the board and the other for the sidebar. Then change the coordinates of the board quad when bumping.
2021-10-24 07:13:51 +03:00
Muzychenko Andrey
5cd01807b2 winmain: converted int to bool.
Cleaned up some of the PR changes.
2021-10-23 09:02:51 +03:00
toxie
57af3af800
Increase precision of mode_countdown_ handling (#52)
* fix harmless warnings and properly try/catch allocations via new

otherwise the error handling will never be triggered

* increase precision of mode_countdown_ handling

potentially there could be modes running a bit too long, depending on passed in ms (which were implicitly truncated before when passing in)

also fix some harmless warnings

* document warnings that i cannot handle on my own

* revert changes to have a new cleaner PR after review/cherry picks

* increase precision of mode_countdown_ handling

potentially there could be modes running a bit too long, depending on passed in ms (which were implicitly truncated before when passing in)

also fix some harmless warnings and add comments where original code is 'correct' but weird
2021-10-23 07:33:04 +03:00
Desgging
8e07b7fc3f
Full Tilt hack - ball doesn't delay at ramp hole (#63) 2021-10-23 07:31:25 +03:00
IntriguingTiles
0076f8947c
Add Wii U port to readme (#60) 2021-10-22 12:34:25 +03:00
Muzychenko Andrey
43ce86571c MinGW: added rc compiler to toolchain.
Ref issue #54.
2021-10-19 08:13:21 +03:00
extrowerk
4188cd3455
Update FindSDL2.cmake (#53)
Fix for Haiku, because nobody can write a cross-platform build tool.
2021-10-19 08:06:37 +03:00
Muzychenko Andrey
685dfe78c2 TPlunger: removed duplicated code.
Ref PR#52.
2021-10-18 10:52:13 +03:00
Muzychenko Andrey
348d79ef38 Bugs and suggestions from PR# 48. 2021-10-18 09:31:47 +03:00
MaikelChan
9088c44b3e
Add Wii port to the README (#51) 2021-10-18 08:17:07 +03:00
Muzychenko Andrey
06b760e8dd Player controls: added mouse and game controller remapping.
Fixed duplicate button id.
2021-10-17 18:18:29 +03:00
Muzychenko Andrey
d06aa1c736 Changed SDL_mixer version guard.
SDL_MIXER_COMPILEDVERSION is not in Windows release of mixer v2.0.1, so it is back to basics with SDL_MIXER_PATCHLEVEL.
MIX_INIT_FLUIDSYNTH was renamed in 2.0.2, according to headers from Windows releases.
Ref PR #42, #46
2021-10-17 12:00:30 +03:00
Mariotaku
787c623cfe
Backward compatibility for mixer version check (#46)
SDL_MIXER_VERSION_ATLEAST isn't available in SDL Mixer 2.0.1, which will cause build errors.
2021-10-17 09:00:49 +03:00
Iscle
b7bf1563e5
Update README.md (#45)
Co-authored-by: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com>
2021-10-17 07:58:00 +03:00
Mariotaku
f56abf0596
Compatibility and game controller patches (#42)
* Compatibility for old CMake versions (3.0)
Compatibility for SDL Mixer 2.0.1
Basic controller support: LB, RB for flippers, A for plunger, DPAD for table bump

* Update SpaceCadetPinball/Sound.cpp

Co-authored-by: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com>
2021-10-17 07:52:05 +03:00
haruna
a7e3503e2c
fix: lint README to make more linkable (#40)
* fix: lint README to make more linkable

* restore blank lines between `Known source ports` and `Source`
2021-10-17 07:49:17 +03:00
Muzychenko Andrey
2ee40560ee
Update CONTRIBUTING.md
Added issue part.
2021-10-16 15:06:44 +03:00
Muzychenko Andrey
5682640e36
Create CONTRIBUTING.md 2021-10-16 14:51:44 +03:00
Mariotaku
7ec2ab9a76
Added webOS source port entry (#43) 2021-10-16 14:26:15 +03:00
Muzychenko Andrey
82d4d8719f
Added link to Switch source port.
Mentioned macOS as supported.
2021-10-15 14:07:25 +03:00
Muzychenko Andrey
f302687c7f high_score: fixed new score not shifting older scores.
Issue #33.
2021-10-15 13:30:55 +03:00
Tomáš Hübelbauer
fd973f049c
Fix a typo (#32) 2021-10-15 07:26:16 +03:00
Muzychenko Andrey
5947727f80 Tweaked ball mouse control cheat. 2021-10-10 17:13:43 +03:00
Muzychenko Andrey
69ecce88df Score: inject 3DPB msg font into dat struct.
Fixed double free in sound.
2021-10-10 12:22:21 +03:00
Muzychenko Andrey
43593b168d Sound: added channel recycling.
Added sound channel count (aka voices) user option.
Added 3DPB font to sprite viewer.
Added version number to about dialog.
2021-10-09 17:28:30 +03:00
Muzychenko Andrey
d80074b9b6 Added Windows subsystem entry point for release builds. 2021-10-09 12:33:33 +03:00
Muzychenko Andrey
69027eca53 Mingw build: static link, posix g++, SDL2 list order. 2021-10-07 16:47:07 +03:00
Muzychenko Andrey
ac289c7f48 Fixed TLightGroup message 45 and 46, used by TLightBargraph.
Issue #25.
2021-10-07 14:17:43 +03:00
Nixola
87e44b700b
Mingw cross compilation (#24)
* Fixed icon filename capitalization

* Created mingw cmake toolchain

* Adjusted CMakeLists.txt for compatibility

* Small mingwcc.cmake cleanup

* Added cross-compilation instructions to readme

* Update README.md

Fixed typo

Co-authored-by: Nicola Orlando <nicolaorlando24@gmail.com>
Co-authored-by: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com>
2021-10-07 12:53:56 +03:00
Muzychenko Andrey
48721e5811 Fixed flipper animation frame skip bug.
It is from original 3DPB, not present in FT.
2021-10-07 08:01:34 +03:00
Muzychenko Andrey
7ee508118c Fixed TKickout temporary Z in FT mode. 2021-10-06 12:42:22 +03:00
Muzychenko Andrey
8c4f38c0af Cheats: flipped literals, made some toggle, added GUI. 2021-10-05 16:48:13 +03:00
Muzychenko Andrey
167a2c2bd1 Demangled and simplified pbctrl_bdoor_controller. 2021-10-04 17:04:09 +03:00
Muzychenko Andrey
f1c6c48b36 Enabled icon in Windows build. 2021-10-03 18:57:19 +03:00