27
Sorry, you have died!
If the frog moves to
a cell which already
contains a hole or
a dragon, it dies.
The game runs
a subroutine called
“Die,” which looks
like this:
Message received
Messages are another way of one sprite
talking to another. If you look in the code
for the hole and dragon you will see that
they look for this “Delete” message.
When it is received, the clones
are deleted.
This routine sets “GameOn” to 0, meaning that the frog
no longer moves; it also switches the backdrop to the
“die” screen and hides the frog. It then broadcasts a
message named “Delete.”