Adds information to player

- Fullscreen command is listed
- ESC to go back from views is listed
This commit is contained in:
Linus Probert 2018-08-30 11:32:09 +02:00
parent 0ab65c9989
commit fbb63ba742
2 changed files with 11 additions and 7 deletions

View File

@ -103,7 +103,7 @@ static char *how_to_play_tooltip[] = {
"", "",
" ATTACK: Walk into a monster to attack it", " ATTACK: Walk into a monster to attack it",
"", "",
" THROW DAGGER: Press 4 then chose a direction (navigation keys)", " THROW DAGGER: Press 4 then chose a direction (nav keys)",
"", "",
" DRINK HEALTH: Press 5 (if you need health and have potions)", " DRINK HEALTH: Press 5 (if you need health and have potions)",
"", "",
@ -111,6 +111,8 @@ static char *how_to_play_tooltip[] = {
"", "",
" TOGGLE SOUND: CTRL + S", " TOGGLE SOUND: CTRL + S",
"", "",
" TOGGLE FULLSCREEN: CTRL + F",
"",
" TOGGLE MENU: ESC", " TOGGLE MENU: ESC",
"", "",
" Your stats and inventory are listed in the right panel", " Your stats and inventory are listed in the right panel",

View File

@ -95,6 +95,7 @@ screen_create_credits(SDL_Renderer *renderer)
linkedlist_push(&screen->sprites, credit_txt("ArtisticDuded", C_WHITE, x + columnOffset, y, renderer)); linkedlist_push(&screen->sprites, credit_txt("ArtisticDuded", C_WHITE, x + columnOffset, y, renderer));
y += 20; y += 20;
linkedlist_push(&screen->sprites, credit_txt("opengameart.org/users/artisticdude", C_WHITE, x + columnOffset, y, renderer)); linkedlist_push(&screen->sprites, credit_txt("opengameart.org/users/artisticdude", C_WHITE, x + columnOffset, y, renderer));
linkedlist_push(&screen->sprites, score_txt("Press ESC to go back", C_RED, 15, SCREEN_HEIGHT - 25, renderer));
return screen; return screen;
} }
@ -164,6 +165,7 @@ screen_create_hiscore(SDL_Renderer *renderer)
renderer)); renderer));
hiscore_destroy(score); hiscore_destroy(score);
} }
linkedlist_push(&screen->sprites, score_txt("Press ESC to go back", C_RED, 15, SCREEN_HEIGHT - 25, renderer));
return screen; return screen;
} }