Open javierfernandes opened 8 years ago
Ok, I like it. What do you print as "what they do" ?
One option could be adding an description when the listener is created:
M.onPressDo([ granjero.plantaMaiz() ], "Plantar maiz")
and print: M: Plantar maiz Or directly print the code within the block (I don't know if it is easy): M: granjero.plantaMaiz()
Other option, I was thinking, could be adding a string as help for the game:
game.addHelp("El granjero planta maiz con la tecla 'M'!")
In this option we can add more information about the game, but we lost the binding between listener and help. Maybe we can combine both.
Respect to "how show it", I think that always visible in a corner it's ok now. We can add a transparect effect or a shortcut for hide the help if it bothers the people.
Currently for each game you need to see the source code to know which keys have an associated behavior. It would be good to have some kind of "help" in the game itself that shows the list of keys and what they do. Maybe always visible