Commit Graph
43 Commits
Author SHA1 Message Date
Paul Gilbert 5da9ba491f GOT: Add support for playing shareware version
Note that technically the shareware version has a different
splash screen that isn't implemented, plus it shows some
ordering screens on exit that likewise isn't supported.
2025-02-10 21:37:11 -08:00
Strangerke 9fd9a96e7c GOT: More renaming in vars.h 2025-01-23 23:03:06 +01:00
Strangerke 47e2e347e2 GOT: Some renaming in vars.h (WIP) 2025-01-23 08:43:02 +01:00
Strangerke 0f3990e13a GOT: Renaming in the gfx folder, remove some unused includes 2025-01-21 09:03:29 +01:00
Strangerke be1a9e3232 GOT: Remove various unused methods in events 2025-01-14 01:05:45 +01:00
Strangerke f29d7099d7 GOT: fix several CppCheck issues in setup, events, back and boss2 2025-01-13 23:50:36 +01:00
Strangerke fda732830d GOT: Remove some useless includes, format remaining code 2025-01-13 22:39:21 +01:00
Strangerke a475bf6d39 GOT: Start working on views (modification of access to global arrays, code formatting) 2025-01-13 12:32:17 -08:00
Strangerke 99302bd8e9 GOT: Reduce some variable scopes (CppCheck), enforce the use of boolean with play_sound() 2025-01-12 18:11:27 +02:00
Paul Gilbert c96bf9840f GOT: Hide Demo main menu option for now 2025-01-12 18:11:27 +02:00
Paul Gilbert b9da852663 GOT: Preliminary fixes for demo mode 2025-01-12 18:11:27 +02:00
Paul Gilbert dec0a1fa7f GOT: Rework high score defaults to avoid x64 build error 2025-01-12 18:11:27 +02:00
Paul Gilbert 59abcd5176 GOT: Janitorial provided by eientei 2025-01-12 18:11:27 +02:00
Paul Gilbert 0270df43b7 GOT: Only resume running scripts after ask/say fully closed
Previously in a case where a Say display was followed by
an Ask dialog, the script was resumed as the Say dialog
was closing, which caused a wobbly as the Ask dialog tried
to open. Now, the Say dialog is allowed to fully close,
and the main event loop detects if the script is pending
to resume, and only run it then.
2025-01-12 18:11:27 +02:00
Paul Gilbert 15ee6c071d GOT: Cleanup of magic using apple 2025-01-12 18:11:27 +02:00
Paul Gilbert 7ee9ffb1b9 GOT: In progress demo mode automatic key injection 2025-01-12 18:11:27 +02:00
Paul Gilbert 1454c1bba5 GOT: Startup cleanups for going in-game demo vs non-demo 2025-01-12 18:11:27 +02:00
Paul Gilbert a7e9e78cbc GOT: Startup/save fixes for demo mode 2025-01-12 18:11:27 +02:00
Paul Gilbert dad8e86bd0 GOT: Escape key for Credits view 2025-01-12 18:11:27 +02:00
Paul Gilbert 72812cccf0 GOT: Credits background 2025-01-12 18:11:27 +02:00
Paul Gilbert 98e45ad524 GOT: Background for opening screen 2025-01-12 18:11:27 +02:00
Paul Gilbert dcbb227bde GOT: Initial fade in for splash screen 2025-01-12 18:11:27 +02:00
Paul Gilbert ef8a39f695 GOT: Splash screen animation 2025-01-12 18:11:27 +02:00
Paul Gilbert 8f22c27b67 GOT: Initial background for startup Splash Screen 2025-01-12 18:11:27 +02:00
Paul Gilbert 44f5e0d652 GOT: Adding options dialogs, select option dialogs cleanup 2025-01-12 18:11:27 +02:00
Paul Gilbert 01f7f63fbe GOT: Speed up gameplay to match original 2025-01-12 18:11:27 +02:00
Paul Gilbert 59098c4eca GOT: Implement palette cycling animations 2025-01-12 18:11:27 +02:00
Paul Gilbert 7bf87ecabc GOT: Have key and action events set key_flags array
The original code heavily uses the key_flags in various
places to check for keys being pressed, and it's populated
directly from a custom keyboard interrupt. As such, it
can't easily be entirely refactored to simple key->response
semantics. Particularly in cases of movement, where you can
move in diagonals by holding multiple movement keys.

So the engine supports standard event dispatch for views and
dialogs, which are simple and self-contained, and for gameplay
it sets the key_flags, allowing the engine to check once per
frame and do actions based on the flag settings.
2025-01-12 18:11:27 +02:00
Paul Gilbert 59ca89d57a GOT: Console command for setting magic 2025-01-12 18:11:27 +02:00
Paul Gilbert ce1ae1ac1c GOT: Adding once-per-frame checks 2025-01-12 18:11:27 +02:00
Paul Gilbert bf0a15c45e GOT: Move image.cpp to gfx/, temporarily disable some init code 2025-01-12 18:11:27 +02:00
Paul Gilbert acbe124d23 GOT: Working on fading 2025-01-12 18:11:27 +02:00
Paul Gilbert f046dffb92 GOT: Work on Story view display 2025-01-12 18:11:27 +02:00
Paul Gilbert e10cdaba23 GOT: Redraw underlying views when switching between dialogs 2025-01-12 18:11:27 +02:00
Paul Gilbert 13c1eab13e GOT: Added main menu display 2025-01-12 18:11:27 +02:00
Paul Gilbert 495b3e72ff GOT: Dialog now listing options 2025-01-12 18:11:27 +02:00
Paul Gilbert a51cb7839d GOT: Add GfxSurface class to be used in view drawing 2025-01-12 18:11:27 +02:00
Paul Gilbert 26f123cf7b GOT: Beginnings of dialog display 2025-01-12 18:11:27 +02:00
Paul Gilbert bbc92d689c GOT: Added BgPics class to hold background images 2025-01-12 18:11:27 +02:00
Paul Gilbert b0a4ebd614 GOT: Beginnings of graphics loading 2025-01-12 18:11:27 +02:00
Paul Gilbert a553a01482 GOT: Beginnings of first screen 2025-01-12 18:11:27 +02:00
Paul Gilbert 375e9c4bf0 GOT: Create Views namespace 2025-01-12 18:11:27 +02:00
Paul Gilbert 0ed1caeb15 GOT: Skeleton engine 2025-01-12 18:11:27 +02:00