Not sure if this forum is still alive, but here goes:
I just started using Gosu to make a side-scrolling shooter. I've got the scene system working since that's what I'm used to from RGSS, but something is bothering me. If the user manually closes the game window, it just closes it and leaves the console window open. I'm not sure if there will even be a console window when I export the final product, but is there anyway to detect if the user is closing the window manually (X button) and call $scene = nil?
I just started using Gosu to make a side-scrolling shooter. I've got the scene system working since that's what I'm used to from RGSS, but something is bothering me. If the user manually closes the game window, it just closes it and leaves the console window open. I'm not sure if there will even be a console window when I export the final product, but is there anyway to detect if the user is closing the window manually (X button) and call $scene = nil?