Skip to content
Discussion options

You must be logged in to vote

Hello @drako0812 ,

That's a good point :) At the moment there is no way to stop the game loop, otherwise than closing the window by the user.

I propose to add a new function which will be used to stop the game loop. Not yet decided in which package, though. Propably in piloop. Something like piloop.Stop(). And it will publish an event, which will be handled by backend, which will eventually stop the game loop and pi.Run() call will end. Then the game programmer, could add a logic just after pi.Run which will do a cleanup. What do you think?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@drako0812
Comment options

@elgopher
Comment options

@elgopher
Comment options

@elgopher
Comment options

Answer selected by drako0812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants