Added extra buttons:

- Implemented retry button*
- Escape on mode select sends you to title screen
- Escape on title screen closes the game
- Added "Exit Game" entry on title screen, closes the game when selected

*Pardon my angry comment in `scene/game.lua`.
This commit is contained in:
Oshisaure
2020-10-08 04:56:46 +01:00
parent a4984fd687
commit 5606251ea7
8 changed files with 43 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ local TitleScene = Scene:extend()
local main_menu_screens = {
ModeSelectScene,
InputConfigScene,
ExitScene,
}
function TitleScene:new()
@@ -43,6 +44,8 @@ function TitleScene:onKeyPress(e)
self:changeOption(-1)
elseif (e.scancode == config.input["down"] or e.scancode == "down") and e.isRepeat == false then
self:changeOption(1)
elseif e.scancode == "escape" and e.isRepeat == false then
love.event.quit()
end
end