energy_ball 
The Tesla engine
Vars | |
| energy | Current energy of the ball. Affects creation/removal of miniballs and zap power. |
|---|---|
| energy_to_lower | Energy threshold below which one orbiting miniball is removed. |
| energy_to_raise | Energy threshold above which the ball spawns a new miniball. |
| miniball | TRUE if this is a miniball (does not spawn new balls nor generate power). |
| orbiting_balls | List of miniballs orbiting this ball. |
| produced_power | Power produced (not used in this snippet). |
| shocked_things | List of objects already shocked in the current cycle to avoid double shocks. |
| target | Target towards which the ball moves with some probability. |
Var Details
energy 
Current energy of the ball. Affects creation/removal of miniballs and zap power.
energy_to_lower 
Energy threshold below which one orbiting miniball is removed.
energy_to_raise 
Energy threshold above which the ball spawns a new miniball.
miniball 
TRUE if this is a miniball (does not spawn new balls nor generate power).
orbiting_balls 
List of miniballs orbiting this ball.
produced_power 
Power produced (not used in this snippet).
shocked_things 
List of objects already shocked in the current cycle to avoid double shocks.
target 
Target towards which the ball moves with some probability.