added restart game button to pause menu

This commit is contained in:
2024-12-01 19:20:18 -06:00
parent e14638f109
commit e6915a2c2b

View File

@@ -30,6 +30,11 @@ function PauseMenu:_createRoot()
width = 200,
onClick = function() self.core:popState() end,
}
+ button {
text = 'Restart',
width = 200,
onClick = function() self.core:switchState(self.core.states.game) end,
}
+ button {
text = 'Quit to main menu',
width = 200,