Zombie World
Create a world with a zombie (Spooky) and an open grave (a black square on the ground). In a scene from a scary movie, the zombie walks forward toward the grave and falls in. In this animation, every time the user presses the space bar, the zombie should walk forward. A Boolean function named is Above Grave returns true if the zombie is within one-half meter of the grave. When the function returns true, make the zombie fall in.
