Skip to content

Commit c3188af

Browse files
committed
Changed prompts to be suitable for non-Blit builds
1 parent 84d41c9 commit c3188af

7 files changed

+19
-6
lines changed

AssetFactory.hpp

+13
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414

1515
#include "assets_fonts.hpp"
1616

17+
/* Key prompts depend on whether we're on the actual Blit or not. */
18+
#ifdef TARGET_32BLIT_HW
19+
#define STR_B_TO_LAUNCH "Press 'B' To Launch"
20+
#define STR_B_TO_SAVE "PRESS 'B' TO SAVE"
21+
#define STR_A_TO_START "PRESS 'A' TO START"
22+
#define STR_MENU_TO_RETURN "PRESS <MENU> TO RETURN"
23+
#else /* TARGET_32BLIT_HW */
24+
#define STR_B_TO_LAUNCH "Press 'X' To Launch"
25+
#define STR_B_TO_SAVE "PRESS 'X' TO SAVE"
26+
#define STR_A_TO_START "PRESS 'Z' TO START"
27+
#define STR_MENU_TO_RETURN "PRESS '2' TO RETURN"
28+
#endif /* TARGET_32BLIT_HW */
29+
1730
class AssetFactory
1831
{
1932
private:

DeathState.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void DeathState::render( uint32_t p_time )
229229

230230
/* Lastly, prompt the user to press a button. */
231231
blit::screen.text(
232-
"PRESS 'B' TO SAVE",
232+
STR_B_TO_SAVE,
233233
assets.message_font,
234234
blit::Point( blit::screen.bounds.w / 2, blit::screen.bounds.h - 10 ),
235235
true,

GameState.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ void GameState::render( uint32_t p_time )
850850
{
851851
blit::screen.pen = font_pen;
852852
blit::screen.text(
853-
"Press 'B' To Launch",
853+
STR_B_TO_LAUNCH,
854854
assets.message_font,
855855
blit::Point( blit::screen.bounds.w / 2, blit::screen.bounds.h - 45 ),
856856
true,

HiscoreState.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void HiscoreState::render( uint32_t p_time )
173173

174174
/* Lastly, prompt the user to press a button. */
175175
blit::screen.text(
176-
"PRESS 'A' TO START",
176+
STR_A_TO_START,
177177
assets.message_font,
178178
blit::Point( blit::screen.bounds.w / 2, blit::screen.bounds.h - 10 ),
179179
true,

MenuState.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ void MenuState::render( uint32_t p_time )
256256

257257
blit::screen.pen = plain_pen;
258258
blit::screen.text(
259-
"PRESS <MENU> TO RETURN",
259+
STR_MENU_TO_RETURN,
260260
assets.number_font,
261261
blit::Point( blit::screen.bounds.w / 2, 200 ),
262262
true,

SplashState.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void SplashState::render( uint32_t p_time )
176176
/* Lastly, prompt the user to press a button. */
177177
blit::screen.pen = font_pen;
178178
blit::screen.text(
179-
"Press 'A' To Start",
179+
STR_A_TO_START,
180180
assets.message_font,
181181
blit::Point( blit::screen.bounds.w / 2, blit::screen.bounds.h - 45 ),
182182
true,

metadata.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ splash:
99
file: assets/32blox-image.png
1010
icon:
1111
file: assets/32blox-icon.png
12-
version: v0.9.0
12+
version: v0.9.1
1313

1414
# End of metadata.yml

0 commit comments

Comments
 (0)