gamercade-io / gamercade_console

A Neo-Retro Fantasy Console. Make WASM-powered, networked multiplayer games.
https://gamercade.io
Apache License 2.0
166 stars 10 forks source link

Feature Request: Console `Reset` Button #42

Closed RobDavenport closed 1 year ago

RobDavenport commented 1 year ago

When running a game, there's no way to ever restart it without closing the entire program. This means for testing gameplay, it becomes a tedius process of run console, load game, start game, test, close console, run console, load game, start game, test etc etc.

It would be nice if there was a reset button, which when pressed resets the current game to the initial state. This shouldn't prompt the user to open another game, but instead just restart the current one.

I think this could be done via messing around with the wasmtime stuff, or by potentially initialzing a whole new WasmConsole. I think the new console technique will be the most bug-free, but it also has the highest performance cost, so it would be better to find an alternative. Bonus points if it can also work over the network state too!

RobDavenport commented 1 year ago

Added in https://github.com/gamercade-io/gamercade_console/commit/7b33c1328355396f19d500c8460d4ee095071ffb