Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Quit dialogs: no lines saying what's kept

Mason3637af502fce110
diff --git a/games/donkeykong/src/draw.c b/games/donkeykong/src/draw.c
index 42e3b428..19de51e1 100644
--- a/games/donkeykong/src/draw.c
+++ b/games/donkeykong/src/draw.c
@@ -376,11 +376,10 @@ static void pause_menu(void) {
}
static void confirm_menu(void) {
- card(76, 92);
- gfx_text_center(&np_font_body, PX + 112, 102, W->confirm ? "Quit this game?" : "Start a new game?", WHITE, 256);
- gfx_text_center(&np_font_small, PX + 112, 120, "Your score so far counts.", MUTED, 256);
- choice(142, "No", W->sel == 0);
- choice(160, "Yes", W->sel == 1);
+ card(80, 84);
+ gfx_text_center(&np_font_body, PX + 112, 106, W->confirm ? "Quit this game?" : "Start a new game?", WHITE, 256);
+ choice(132, "No", W->sel == 0);
+ choice(150, "Yes", W->sel == 1);
}
static void over_menu(void) {
diff --git a/games/dune/src/draw.c b/games/dune/src/draw.c
index af9e7bd0..ff7f971f 100644
--- a/games/dune/src/draw.c
+++ b/games/dune/src/draw.c
@@ -867,17 +867,16 @@ static void paused(void) {
keyline("Up/Down choose OK select Back resume");
}
-static void prompt_panel(void) {
+static void prompt_panel(int h) {
dim(204); /* the overlay: black at 0.8 */
- round_rect(160 - 85, 118 - 87, 171, 174, 0, 0, C(0x0C2B61), 256);
+ round_rect(160 - 85, 118 - h / 2, 171, h, 0, 0, C(0x0C2B61), 256);
}
static void quit(void) {
- prompt_panel();
- center(&art_f21, W / 2, 80, "Quit the game?", WHITE, 256);
- center(&art_f13, W / 2, 112, "Your coins and best are kept.", MUTED, 256);
- button(160 - 36, 184, 53, 25, "No", V->sel == 0);
- button(160 + 36, 184, 53, 25, "Yes", V->sel == 1);
+ prompt_panel(100);
+ center(&art_f21, W / 2, 101, "Quit the game?", WHITE, 256);
+ button(160 - 36, 136, 53, 25, "No", V->sel == 0);
+ button(160 + 36, 136, 53, 25, "Yes", V->sel == 1);
keyline("Arrows choose OK select Back no");
}
@@ -983,7 +982,7 @@ static const char *shop_keys(char *buf) {
}
static void buy(void) {
- prompt_panel();
+ prompt_panel(174);
int cat = V->shop_cat, i = V->shop_sel;
char s[64], *p = s;
const char *name = cat == SHOP_BALLS ? art_ball_info_[i].name : art_land_info_[i].name;
diff --git a/games/fnf/src/screens.c b/games/fnf/src/screens.c
index 5a877b6b..ef818a97 100644
--- a/games/fnf/src/screens.c
+++ b/games/fnf/src/screens.c
@@ -327,10 +327,9 @@ static void pause_body(app_t *a) {
}
static void quit_body(app_t *a) {
- bold_c(160, 60, "QUIT THE GAME?", 32, 256);
- item(160, 112, "KEEP PLAYING", a->sel == 0);
- item(160, 150, "QUIT", a->sel == 1);
- small_c(160, 196, "Your scores are saved.", MUTED);
+ bold_c(160, 55, "QUIT THE GAME?", 32, 256);
+ item(160, 107, "KEEP PLAYING", a->sel == 0);
+ item(160, 145, "QUIT", a->sel == 1);
keyline("Up Down|choose|OK|select|Back|pause");
}
diff --git a/games/hillclimb/src/game.c b/games/hillclimb/src/game.c
index dc8cc31e..4c7beeaa 100644
--- a/games/hillclimb/src/game.c
+++ b/games/hillclimb/src/game.c
@@ -53,17 +53,16 @@ static void pause_frame(uint32_t pressed) {
static void pause_draw(void) {
run_draw(true);
gfx_fill(0, 0, SCREEN_W, SCREEN_H, C_BLACK, 130);
- gfx_rrect(90, 44, 140, 156, 10, rgb565(0x2A2D33), 240);
+ gfx_rrect(90, 44, 140, pause_ask ? 138 : 156, 10, rgb565(0x2A2D33), 240);
gfx_rrect(90, 44, 140, 30, 10, rgb565(0x4A4F57), 255);
gfx_fill(90, 64, 140, 10, rgb565(0x4A4F57), 255);
gfx_text(FONT_L, 160, 67, "PAUSED", C_WHITE, C_BLACK, 1);
if (pause_ask) {
gfx_text(FONT_M, 160, 110, "Quit the game?", C_WHITE, C_BLACK, 1);
- gfx_text(FONT_S, 160, 130, "Your coins are kept.", rgb565(0xC8CDD4), C_BLACK, 1);
- gfx_rrect(104, 150, 54, 26, 6, rgb565(0x3DAA3D), 255);
- gfx_rrect(162, 150, 54, 26, 6, rgb565(0x8A2E2E), 255);
- gfx_text(FONT_M, 131, 169, "OK", C_WHITE, C_BLACK, 1);
- gfx_text(FONT_M, 189, 169, "BACK", C_WHITE, C_BLACK, 1);
+ gfx_rrect(104, 132, 54, 26, 6, rgb565(0x3DAA3D), 255);
+ gfx_rrect(162, 132, 54, 26, 6, rgb565(0x8A2E2E), 255);
+ gfx_text(FONT_M, 131, 151, "OK", C_WHITE, C_BLACK, 1);
+ gfx_text(FONT_M, 189, 151, "BACK", C_WHITE, C_BLACK, 1);
return;
}
for (int i = 0; i < 4; i++) {
diff --git a/games/isaac/src/game.c b/games/isaac/src/game.c
index 869da9e4..7def2b4d 100644
--- a/games/isaac/src/game.c
+++ b/games/isaac/src/game.c
@@ -423,15 +423,16 @@ static void stat_line(int x, int y, const char *name, float v) {
static void draw_pause(void) {
draw_room();
gfx_rect(0, 0, SCREEN_W, SCREEN_H, C_BLACK, 16);
- paper(20, 20, 280, 200);
- gfx_text_c(FONT_UPHEAVAL, 160, 28, "PAUSED", INK, 2, false);
- static const char *const opts[] = {"RESUME", "QUIT GAME"};
if (g_mode == MODE_CONFIRM) {
- gfx_text_c(FONT_UPHEAVAL, 160, 70, "QUIT? YOUR RUN IS KEPT", INK, 1, false);
+ paper(100, 78, 120, 84);
+ gfx_text_c(FONT_UPHEAVAL, 160, 90, "QUIT?", INK, 2, false);
static const char *const yn[] = {"NO", "YES"};
- menu_list(yn, 2, confirm_sel, 160, 92);
+ menu_list(yn, 2, confirm_sel, 160, 116);
return;
}
+ paper(20, 20, 280, 200);
+ gfx_text_c(FONT_UPHEAVAL, 160, 28, "PAUSED", INK, 2, false);
+ static const char *const opts[] = {"RESUME", "QUIT GAME"};
menu_list(opts, 2, pause_sel, 100, 58);
/* his stats, as the game lists them */
stat_line(190, 54, "DMG", pl.damage);
diff --git a/games/jetpackjoyride/src/draw.c b/games/jetpackjoyride/src/draw.c
index 5bfa46d7..9959f413 100644
--- a/games/jetpackjoyride/src/draw.c
+++ b/games/jetpackjoyride/src/draw.c
@@ -485,9 +485,8 @@ static void paused(void) {
static void confirm(void) {
dim(170);
- panel(48, 70, 224, 88);
- center(&np_font_title, 102, V->sel ? "Quit this run?" : "Retry this run?", WHITE);
- center(&np_font_small, 128, "Coins you grabbed are kept.", MUTED);
+ panel(64, 84, 192, 60);
+ center(&np_font_title, 119, V->sel ? "Quit this run?" : "Retry this run?", WHITE);
keyline("OK yes Back no");
}
diff --git a/games/monkeymart/src/draw.c b/games/monkeymart/src/draw.c
index 5fcfd722..46f54f57 100644
--- a/games/monkeymart/src/draw.c
+++ b/games/monkeymart/src/draw.c
@@ -707,14 +707,13 @@ static void pause_window(const mm_game *g, const mm_ui *v) {
}
static void quit_window(const mm_ui *v) {
- window(50, 70, 220, 100, 0);
- text_c(&mm_font_big, "Quit the game?", 160, 84, INK);
- text_c(&mm_font_small, "Your mart is saved.", 160, 104, INK);
+ window(50, 77, 220, 86, 0);
+ text_c(&mm_font_big, "Quit the game?", 160, 91, INK);
static const char *const yn[2] = {"No", "Yes"};
for (int i = 0; i < 2; i++) {
int x = 80 + i * 90;
- button(x, 126, 70, 26, v->sel == i ? BUY : PALE, v->sel == i ? BUY_EDGE : DULL_EDGE, v->sel == i);
- text_c(&mm_font_big, yn[i], x + 35, 133, INK);
+ button(x, 119, 70, 26, v->sel == i ? BUY : PALE, v->sel == i ? BUY_EDGE : DULL_EDGE, v->sel == i);
+ text_c(&mm_font_big, yn[i], x + 35, 126, INK);
}
}
diff --git a/games/numdrive/lang/fr.txt b/games/numdrive/lang/fr.txt
index 0706b875..7a1bdcbc 100644
--- a/games/numdrive/lang/fr.txt
+++ b/games/numdrive/lang/fr.txt
@@ -16,6 +16,5 @@ Next Level Niveau suivant
Levels Niveaux
Quit game Quitter
Quit game? Quitter ?
-You can come back anytime. Tu peux revenir quand tu veux.
Yes Oui
No Non
diff --git a/games/numdrive/lang/zh.txt b/games/numdrive/lang/zh.txt
index b66f450a..d279b726 100644
--- a/games/numdrive/lang/zh.txt
+++ b/games/numdrive/lang/zh.txt
@@ -16,6 +16,5 @@ Next Level 下一关
Levels 关卡
Quit game 退出游戏
Quit game? 退出游戏?
-You can come back anytime. 随时欢迎回来。
Yes 是
No 否
diff --git a/games/numdrive/src/ui.c b/games/numdrive/src/ui.c
index de9e746c..1170a190 100644
--- a/games/numdrive/src/ui.c
+++ b/games/numdrive/src/ui.c
@@ -607,16 +607,15 @@ void quit_draw(bool yes) {
uint16_t *buf = render_buffer();
for (int r = 0; r < n; r++) bg_row(buf + r * SCREEN_W, sy + r, 0, SCREEN_W);
g_begin(buf, sy, n);
- g_rrect(63, 75, 200, 94, 12, C_SHADOW, 13);
- g_rrect(59, 71, 202, 94, 13, C_BLACK, 32);
- g_rrect(60, 72, 200, 92, 12, C_WHITE, 32);
- g_text_c(&font_m, 160, 100 - font_m.base, T("Quit game?"), C_OUTLINE, 32);
- g_text_c(&font_s, 160, 116 - font_s.base, T("You can come back anytime."), C_CAPTION, 32);
+ g_rrect(63, 81, 200, 82, 12, C_SHADOW, 13);
+ g_rrect(59, 77, 202, 82, 13, C_BLACK, 32);
+ g_rrect(60, 78, 200, 80, 12, C_WHITE, 32);
+ g_text_c(&font_m, 160, 106 - font_m.base, T("Quit game?"), C_OUTLINE, 32);
for (int k = 0; k < 2; k++) {
bool on = k == yes;
int x = k ? 170 : 80;
- g_button(x, 126, 70, 26, 6, on ? C_BLUE : C_GRAY, on ? C_BLUE_D : C_GRAY_D, on);
- g_text_c(&font_s, x + 35, 126 + 17 - font_s.base, k ? T("Yes") : T("No"), C_WHITE, 32);
+ g_button(x, 120, 70, 26, 6, on ? C_BLUE : C_GRAY, on ? C_BLUE_D : C_GRAY_D, on);
+ g_text_c(&font_s, x + 35, 120 + 17 - font_s.base, k ? T("Yes") : T("No"), C_WHITE, 32);
}
plat_push(0, sy, SCREEN_W, n, buf);
}
diff --git a/games/paperclips/lang/fr.txt b/games/paperclips/lang/fr.txt
index 81b4ba40..e63485c1 100644
--- a/games/paperclips/lang/fr.txt
+++ b/games/paperclips/lang/fr.txt
@@ -173,7 +173,6 @@ Paused Pause
Quit Universal Paperclips? Quitter Universal Paperclips\xA0?
Are you sure you want to restart? Vraiment recommencer\xA0?
Start a new game? Commencer une nouvelle partie\xA0?
-Your paperclips are saved. Tes trombones sont sauvegardés.
This game will be gone. Cette partie sera perdue.
Quit Quitter
Keep playing Continuer
diff --git a/games/paperclips/src/ui.c b/games/paperclips/src/ui.c
index 5f9922d1..c6cc8342 100644
--- a/games/paperclips/src/ui.c
+++ b/games/paperclips/src/ui.c
@@ -1021,13 +1021,14 @@ static void overlay(pc_ui *u) {
const char *q = u->overlay == O_QUIT ? "Quit Universal Paperclips?"
: u->overlay == O_RESTART ? "Are you sure you want to restart?"
: "Start a new game?";
- const char *sub = u->overlay == O_QUIT ? "Your paperclips are saved." : "This game will be gone.";
const char *yes = u->overlay == O_QUIT ? "Quit" : u->overlay == O_RESTART ? "Restart" : "New game";
- box(66, 108);
- center(BODY, 92, q, C_BLACK);
- center(SMALL, 108, sub, C_DIM);
- menu_item(120, yes, u->sel == 0);
- menu_item(146, u->overlay == O_QUIT ? "Keep playing" : "Cancel", u->sel == 1);
+ bool quit = u->overlay == O_QUIT;
+ int y = quit ? 74 : 66;
+ box(y, quit ? 92 : 108);
+ center(BODY, y + (quit ? 22 : 26), q, C_BLACK);
+ if (!quit) center(SMALL, y + 42, "This game will be gone.", C_DIM);
+ menu_item(y + (quit ? 34 : 54), yes, u->sel == 0);
+ menu_item(y + (quit ? 60 : 80), quit ? "Keep playing" : "Cancel", u->sel == 1);
break;
}
default: break;
diff --git a/games/pvz/src/screens.c b/games/pvz/src/screens.c
index 5850dade..e46a5019 100644
--- a/games/pvz/src/screens.c
+++ b/games/pvz/src/screens.c
@@ -855,12 +855,11 @@ static void draw_pause(void) {
static const char *const items[4] = {"Back to Game", "Restart Level", "Main Menu", "Quit Game"};
for (int i = 0; i < 4; i++) draw_button(x + 30, y + 62 + i * 25, w - 60, items[i], i == sel);
if (confirm) {
- draw_dialog(50, 84, 220, 82);
- gfx_paragraph(F_BODY, 160, 104, 200,
- confirm == 1 ? "Quit the game? This level is kept for next time." : "Restart this level from the start?",
- C_WHITE, GFX_OUTLINE);
- draw_button(70, 138, 80, confirm == 1 ? "Quit" : "Restart", sel2 == 0);
- draw_button(170, 138, 80, "Cancel", sel2 == 1);
+ draw_dialog(50, 91, 220, 68);
+ gfx_paragraph(F_BODY, 160, 109, 200, confirm == 1 ? "Quit the game?" : "Restart this level from the start?", C_WHITE,
+ GFX_OUTLINE);
+ draw_button(70, 129, 80, confirm == 1 ? "Quit" : "Restart", sel2 == 0);
+ draw_button(170, 129, 80, "Cancel", sel2 == 1);
}
}
diff --git a/games/retrogo/lang/fr.txt b/games/retrogo/lang/fr.txt
index 19ba2715..de06eab5 100644
--- a/games/retrogo/lang/fr.txt
+++ b/games/retrogo/lang/fr.txt
@@ -77,7 +77,6 @@ Soft reset Redémarrage doux
Hard reset Redémarrage complet
Reset Emulation? Redémarrer le jeu ?
Quit game? Quitter le jeu ?
-The battery save is kept. La sauvegarde de la cartouche est gardée.
This cartridge type isn't supported. Ce type de cartouche n'est pas pris en charge.
This game needs more memory than the calculator has. Ce jeu demande plus de mémoire que la calculatrice n'en a.
This file isn't a game Retro-Go can read. Retro-Go ne sait pas lire ce fichier.
diff --git a/games/retrogo/lang/zh.txt b/games/retrogo/lang/zh.txt
index 9ee42497..4f2cc3b0 100644
--- a/games/retrogo/lang/zh.txt
+++ b/games/retrogo/lang/zh.txt
@@ -77,7 +77,6 @@ Soft reset 软重置
Hard reset 硬重置
Reset Emulation? 重置游戏?
Quit game? 退出游戏?
-The battery save is kept. 卡带存档会保留。
This cartridge type isn't supported. 不支持这种卡带。
This game needs more memory than the calculator has. 这个游戏需要的内存超过了计算器的容量。
This file isn't a game Retro-Go can read. Retro-Go 无法读取这个文件。
diff --git a/games/retrogo/src/main.c b/games/retrogo/src/main.c
index 52d79f8b..bc39a70b 100644
--- a/games/retrogo/src/main.c
+++ b/games/retrogo/src/main.c
@@ -1206,7 +1206,7 @@ static int game_menu(void) {
if (about() == DLG_HOME) return save_and_exit(), GAME_EXIT;
break;
case M_QUIT: {
- int k = confirm(T("Quit game?"), T("The battery save is kept."));
+ int k = confirm(T("Quit game?"), NULL);
if (k == DLG_HOME) return save_and_exit(), GAME_EXIT;
if (k == 1) return sram_save(), GAME_PICKER;
break;
diff --git a/games/sonic/src/menus.c b/games/sonic/src/menus.c
index d60c47d6..5d0a870a 100644
--- a/games/sonic/src/menus.c
+++ b/games/sonic/src/menus.c
@@ -71,11 +71,10 @@ static void pause_draw(int sel, bool confirm, int csel) {
ui_text(120, 110, sel == 0 ? UI_YELLOW : UI_WHITE, 1, sel == 0 ? "> RESUME" : " RESUME");
ui_text(120, 126, sel == 1 ? UI_YELLOW : UI_WHITE, 1, sel == 1 ? "> QUIT GAME" : " QUIT GAME");
} else {
- ui_box(64, 72, 192, 76, UI_DARK);
- ui_text_centred(84, UI_WHITE, 1, "QUIT THE GAME?");
- ui_text_centred(98, UI_WHITE, 1, "IT IS SAVED AT THIS ACT.");
- ui_text(104, 124, csel == 0 ? UI_YELLOW : UI_WHITE, 1, csel == 0 ? "> YES" : " YES");
- ui_text(176, 124, csel == 1 ? UI_YELLOW : UI_WHITE, 1, csel == 1 ? "> NO" : " NO");
+ ui_box(64, 80, 192, 60, UI_DARK);
+ ui_text_centred(92, UI_WHITE, 1, "QUIT THE GAME?");
+ ui_text(104, 120, csel == 0 ? UI_YELLOW : UI_WHITE, 1, csel == 0 ? "> YES" : " YES");
+ ui_text(176, 120, csel == 1 ? UI_YELLOW : UI_WHITE, 1, csel == 1 ? "> NO" : " NO");
}
}
diff --git a/games/subway/src/app.c b/games/subway/src/app.c
index 79376d04..7b4b335a 100644
--- a/games/subway/src/app.c
+++ b/games/subway/src/app.c
@@ -720,16 +720,12 @@ static void pause_overlay(void) {
static void quit_overlay(void) {
d_dim(110);
bool title = back_to == S_TITLE;
- popup(30, 56, 260, 130, "Quit");
- if (band(84, 40)) {
- d_text(&font_mid, 160 - d_text_width(&font_mid, title ? "Quit Subway Surfers?" : "Quit this run?") / 2, 104,
- title ? "Quit Subway Surfers?" : "Quit this run?", C(0x243D5E), 255);
- const char *sub = title ? "Your coins and progress are saved." : "The coins you picked up are kept.";
- d_text(&font_small, 160 - d_text_width(&font_small, sub) / 2, 120, sub, C(0x243D5E), 255);
- }
- button(48, 140, 100, 30, &sl_red, "QUIT", sel == 1);
- button(172, 140, 100, 30, &sl_green, title ? "STAY" : "PLAY ON", sel == 0);
- if (band(194, 16)) hint(160, 196, "Left Right", "choose", "OK", "confirm");
+ popup(30, 64, 260, 114, "Quit");
+ const char *q = title ? "Quit Subway Surfers?" : "Quit this run?";
+ if (band(96, 24)) d_text(&font_mid, 160 - d_text_width(&font_mid, q) / 2, 112, q, C(0x243D5E), 255);
+ button(48, 132, 100, 30, &sl_red, "QUIT", sel == 1);
+ button(172, 132, 100, 30, &sl_green, title ? "STAY" : "PLAY ON", sel == 0);
+ if (band(186, 16)) hint(160, 188, "Left Right", "choose", "OK", "confirm");
}
static void saveme_overlay(void) {
diff --git a/games/uno/src/draw.c b/games/uno/src/draw.c
index 3c44445d..0cce8614 100644
--- a/games/uno/src/draw.c
+++ b/games/uno/src/draw.c
@@ -757,11 +757,10 @@ static void scene(void *ctx) {
static const char *const items[PAUSE_COUNT] = {"Resume", "New game", "How to play", "Quit game"};
for (int i = 0; i < PAUSE_COUNT; i++) button(84, 76 + i * 30, 152, 24, items[i], v->sel == i);
} else if (v->screen == V_QUIT) {
- panel(50, 66, 220, 104);
- ctext(&np_font_body, 160, 90, "Quit the game?", WHITE);
- ctext(&np_font_small, 160, 108, "It's saved for next time", MUTED);
- button(64, 122, 92, 24, "Keep playing", v->sel == 0);
- button(164, 122, 92, 24, "Quit", v->sel == 1);
+ panel(50, 82, 220, 72);
+ ctext(&np_font_body, 160, 104, "Quit the game?", WHITE);
+ button(64, 118, 92, 24, "Keep playing", v->sel == 0);
+ button(164, 118, 92, 24, "Quit", v->sel == 1);
}
if (gfx_y1 > 226) keyline(uno_keys(g, v));
}