Squashed commit of the following:

commit b29f27ab8d852ff575840060b9af7b62c1b69f68
Author: hkz <tabaglio@posteo.net>
Date:   Tue Oct 7 09:01:06 2025 +0200

    Removed unused loading_screen.c, Updated CHANGELOG, updated loading
    screen

commit 2855ba5209
Author: hkz <tabaglio@posteo.net>
Date:   Thu Sep 11 15:42:46 2025 +0200

    Restore correct offsets for disk writing

commit e1216fa616
Author: hkz <tabaglio@posteo.net>
Date:   Sat Sep 6 10:30:43 2025 +0200

    Update the version number

commit 8a4559d4f9
Author: hkz <tabaglio@posteo.net>
Date:   Sat Sep 6 09:58:24 2025 +0200

    implement a demo mode

commit 22790bdc44
Author: hkz <tabaglio@posteo.net>
Date:   Sat Sep 6 08:31:11 2025 +0200

    Initial creation of demo module
This commit is contained in:
hkz 2025-10-07 09:02:18 +02:00
commit c1060fb449
12 changed files with 261 additions and 243 deletions

View file

@ -21,7 +21,10 @@
static state_page_data* state_page = (state_page_data*)STATE_PAGE;
static shared_page_data *shared_page = (shared_page_data*)SHARED_PAGE;
#define WAIT_COUNTER_END 0xFFFF
void main(void) {
uint16_t wait_counter = 0;
dlog_data *dld = (dlog_data *)(shared_page->module_data);
game_data *gad = (game_data *)(shared_page->module_data);
@ -54,10 +57,16 @@ void main(void) {
shared_page->next_module_idx = 4; // Go to the GAME module
gad->mode = GAME_MODE_NORMAL; // Set the proper start mode for the game
while(!read_any_key()) {
while(!read_any_key() && (wait_counter != WAIT_COUNTER_END)) {
wait_counter++;
lfsr_update();
}
if (wait_counter == WAIT_COUNTER_END) {
shared_page->next_module_idx = 5; // Actually go to the DEMO module
return;
}
snd_mod_button();
return;