Simple Pattern Follower | Explanations |
20 balls are scattered around. There is an alien controlled by the user with the mouse. |
Object declaration, instantiation, and initial placement. Declaration of controlled object. |
The balls move around. | Unconditional statement for describing how the balls move. |
When a ball sees the alien, the ball chases the alien. | Conditional statement for describing relations between a ball and the alien. |
When a ball catches the alien, the alien explodes and the game is over. | Conditional statement for describing collision between a ball and the alien and game control. |
Map: |
Click the image to try it |
Fast Pattern Follower | Explanations |
20 fast balls are scattered around. There is an alien controlled by the user with the mouse. |
Object declaration, instantiation, and initial placement. Declaration of controlled object. |
The balls move around. | Unconditional statement for describing how the balls move. |
When a ball sees the alien, the ball chases the alien. | Conditional statement for describing relations between a ball and the alien. |
Map: |
Click the image to try it |