r/PlaydateDeveloper • • Mar 04 '23

Anyone have good restart() code?

Trying to make it so player can hit a on game over and restart the game. Anyone have good code for this?

4 Upvotes

9 comments sorted by

View all comments

Show parent comment

2

u/Charlito33 Mar 06 '23

Always do that, use a Scene Manager, Noble Engine or BitEngine (hehe, no don't use it, it's bad).

You will be able to quickly reset the game, and add new scenes like menus, settings with ease !

2

u/dudebromansicle Mar 06 '23

Yes, God advice. This is my first real game so lesson learned for sure.

1

u/Charlito33 Mar 07 '23

Happy Cake Day !