Heaps: Close game
To exit the game and close the window, you only have to call the exit function available in the System class of the hxd package:
For example, you can call it when the user presses the escape key:
To exit the game and close the window, you only have to call the exit function available in the System class of the hxd package:
For example, you can call it when the user presses the escape key: