loco-lab / hera-display-games

Games to be played on the HERA display
MIT License
0 stars 0 forks source link

make "master" script #19

Open adampbeardsley opened 4 years ago

adampbeardsley commented 4 years ago

would be nice to have one script that launches the games, then the user can select which game from there.

steven-murray commented 4 years ago

This is kind of what I was thinking when I mentioned the restructure before. In my mind it's something like a master hera-games executable with subcommands that launch a particular game/simulation. So you could something like

$ hera-games snake

or

$ hera-games maze.

I think I can also configure this so that some global options are attached to all games (eg. --use-screen or --input=keyboard), so they don't have to be defined for each game. It should also be able to auto-discover new games then.