Tweak strings to indicate DEMO mode

This commit is contained in:
hkz 2025-10-14 08:57:48 +02:00
commit a3425993b1
3 changed files with 11 additions and 1 deletions

View file

@ -33,6 +33,9 @@
#define MOVES_TEXT_X 27
#define MOVES_TEXT_Y 8
#define BOTTOM_TEXT_X 1
#define BOTTOM_TEXT_Y 23
#define MAX_DEMO_MOVES 30
#define RUNS_TO_SKIP 4000
@ -69,6 +72,8 @@ void main(void) {
score = reset_game();
// Draw the initial state of the game
vdp_print_string(0, BOTTOM_TEXT_X, BOTTOM_TEXT_Y, "DEMO MODE Press any key to exit");
num_to_decbuf(state_page->hi_score, 5, text_buf); // High score
decbuf_to_ascii(5, text_buf);
vdp_print_string(0, HSCORE_TEXT_X, HSCORE_TEXT_Y, (char*)text_buf);

View file

@ -44,7 +44,7 @@ void main(void) {
vdp_print_string(1, 13, 12, (char*)score_buf);
vdp_print_string(1, 5, 15, "Press any key to START");
vdp_print_string(1, 1, 23, "hkz@social.chinwag.org");
vdp_print_string(1, 27, 23, "2025");
vdp_print_string(1, 28, 23, "2025");
switch(dld->mode) {
case DLOG_MODE_WIN:

View file

@ -33,6 +33,9 @@
#define MOVES_TEXT_X 27
#define MOVES_TEXT_Y 8
#define BOTTOM_TEXT_X 1
#define BOTTOM_TEXT_Y 23
#define WIN_SCORE_BONUS 10000
static state_page_data* state_page = (state_page_data*)STATE_PAGE;
@ -77,6 +80,8 @@ void main(void) {
}
// Draw the initial state of the game
vdp_print_string(0, BOTTOM_TEXT_X, BOTTOM_TEXT_Y, "hkz@social.chinwag.org 2025");
num_to_decbuf(state_page->hi_score, 5, text_buf); // High score
decbuf_to_ascii(5, text_buf);
vdp_print_string(0, HSCORE_TEXT_X, HSCORE_TEXT_Y, (char*)text_buf);