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.
[quote=Displacer]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.[/quote]
This is a solution for current team. But there are some keys working even when no team can receive keyboard event. They are:
[list][*]'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)[/list]
These keys expected to work at any time the game is running. So I see two ways to prevent loosing round by pressing Esc:
[listo][*]Ask smth. like 'Are you sure to close the game?'[*]Allow to use saves. When you accidentaly press 'Esc' button, you may load the round from save file, and continue your game![/listo]
[quote=Displacer]Both ways are good and maybe should be implemented, but second way is more important and should be implemented first.[/quote]
Well, it is already mostly implemented. You can find save file in ~/.hedgewars/Saves/ directory. Only loading interface is missing in frontend.
[quote=unC0Rr][quote=Displacer]Both ways are good and maybe should be implemented, but second way is more important and should be implemented first.[/quote]
Well, it is already mostly implemented. You can find save file in ~/.hedgewars/Saves/ directory. Only loading interface is missing in frontend.[/quote]
(: So, it is the time question only Loading interface is itself not a large problem i think.
[quote=Displacer]Loading interface is itself not a large problem i think.[/quote]
Yeah, it could be similar to demo viewing interface. Moreover, saves loading code is same as demos code