| Magic Repeller | Explanations |
|
There are 10 balls near the middle. There is one rock at the bottom. The user controls the rock with the mouse. |
Object declaration, instantiation, and initial placement. Declaration of controlled object. |
|
The balls move randomly. When a ball sees the rock, the ball flees from the rock. When a ball hits a border, the ball reverses direction. |
Unconditional and conditional statements for describing how the balls behave, including border event. |
| Map: |
Click the image to try it |
| Magic Repeller | Explanations |
|
There is one brick at the top. There are 10 balls near the middle. There is one rock at the bottom. The user controls the rock with the mouse. |
Object declaration, instantiation, and initial placement. Declaration of controlled object. |
|
The balls move randomly. When a ball sees the rock, the ball flees from the rock. When a ball hits a border, the ball reverses direction. When a ball hits the brick, the ball explodes. When all the balls are gone, you win. |
Unconditional and conditional statements for describing how the balls behave, including border and gameover events. |
| Map: |
Click the image to try it |