is possible to associate ESC button with a menu?
Sat, 2007-05-05 13:24
before i'm playng and I wanted to pause the game, then i press ESC and the game is closed
is possible to add a menu like
continue game
options
surrender
close game
? tanks
Look add setup page for your team in frontend. This page contains key bindings for some actions. Maybe you should assign Esc key to pause game. It is 'p' by default.
This is a solution for current team. But there are some keys working even when no team can receive keyboard event. They are:
- 'Esc' for quit
- 'p' for pause
- 'f' for toggling fullscreen mode
- '9' and '0' for sound volume ajusting
- 'h' for finding current hedgehog
- 'c' for capturing screenshot
- 'del' to switch set of info placed on top of hedgehogs (team name, hedgehog name and health)
These keys expected to work at any time the game is running. So I see two ways to prevent loosing round by pressing Esc:[o]
Both ways are good and maybe should be implemented, but second way is more important and should be implemented first.
Well, it is already mostly implemented. You can find save file in ~/.hedgewars/Saves/ directory. Only loading interface is missing in frontend.
(: So, it is the time question only Loading interface is itself not a large problem i think.
Yeah, it could be similar to demo viewing interface. Moreover, saves loading code is same as demos code
I agree with Fabioamd87 on this one, I think the ESC key should bring up a menu of some sort with maybe volume controls, quit, etc.
"If you want to play a game that's exactly the same as worms. Play worms." - Tiyuri