Within different distances | Explanations |
There are 2 cobras, 2 foxes, 20 spinstars, and 3 dinos. There is 1 bird near the center. You control the bird with the mouse. |
Object declaration, instantiation, and initial placement. Declaration of controlled object. |
When a cobra sees[50] the bird, it chases the bird. When a fox sees[100] the bird, it chases the bird. When a dino sees[200] the bird, it chases the bird. When a spinstar sees a dino, it revolves around the dino. |
Conditional statements for describing chasing, but at different sensing distances. |
When a cobra catches the bird, the bird explodes. When a dino catches the bird, the bird explodes. When a fox catches the bird, the bird explodes. When the bird explodes, game over. |
Conditional statements for describing how characters can die and gameover. |
Map: |
Click the image to try it |
Can you add a few more obstacle objects to make the game more challenging?