There's an error when the enemy touches you, causing the window to close.
But see ?eventloop::run_loop:
This function... only terminates when the user presses ESC within the window, or some other terminating condition occurs e.g. an error
Amusingly, the player sprite appears for a frame at location [1,1] if the enemy touches them first.
There's an error when the enemy touches you, causing the window to close.
But see
?eventloop::run_loop:Amusingly, the player sprite appears for a frame at location [1,1] if the enemy touches them first.