fph / bastet

Evil falling block game. http://fph.altervista.org/prog/bastet.html
GNU General Public License v3.0
272 stars 35 forks source link

Change default keys forever #19

Open renyhp opened 3 years ago

renyhp commented 3 years ago

Is there a way to customize keys and then retain this preference?

If not, can this be added? A simple implementation idea would just be to not regenerate ~/.bastetrc if there is already one.

Thanks!

fph commented 3 years ago

Hello! What do you mean by 'forever'? Persist across several runs of the game? It should already work like that. If it doesn't on your platform, it must be a bug. Please add more information, so we can try to track it down.

renyhp commented 3 years ago

Yes, I mean persist across several runs of the application. This is the workflow:

I am running on Xubuntu 20.04.2, with bash and guake.

fph commented 3 years ago

Ah -- found the reason; apparently they only get saved if you quit using the menu, not with Ctrl+C. I'll see if I can fix it, thanks for the report.

renyhp commented 3 years ago

In fact, this probably raises the underlying problem that I don't really see a better way to quit the game while in game. Maybe have a key that quits just like the menu does (which also saves the keys)?