Repository navigation
|
I like the idea of this package. But I've been struggling to find a clean way to exit a game do to input, besides just clicking the |
Replies: 1 comment 4 replies
|
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 |
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 likepiloop.Stop(). And it will publish an event, which will be handled by backend, which will eventually stop the game loop andpi.Run()call will end. Then the game programmer, could add a logic just afterpi.Runwhich will do a cleanup. What do you think?