COMP 310
Fall 2012
|
Command-dispatching
Ballworld with Inter-ball Interactions
|
 |
The demo should appear on your screen in its own window. To
restart the demo, refresh/reload this page.
Note: it is
an Honor Code violation to attempt to decompile any supplied code
The following different types of strategies are available for use:
- Straight
- Curve
- Color
- Breathing
- Wander
- Drunken
- Change1
- Change2
- Friction -- slows the ball down by 20% each update.
- Collide -- elastic collision behavior
- Kill -- kills whomever the ball collides with.
- Spawn -- adds an identical ball whenever it overlaps with
another ball.
- HitFlash -- flashes red color when overlaps with another
ball.
- Kill -- deletes other when it collides. Must be
used with Collide strategy.
- Eat -- kills whomever the ball collides with and
increases its area by the killed ball's area. Must be combined
with Collide strategy to work.
- Infect -- a black-colored ball that will turn any other
ball it overlaps with into an Infect ball for its first 50 updates.
After that, the ball becomes a normal Straight ball.
The following paint strategies are available for use:
- Ball
- Square
- Rectangle
- Ellipse
- Fish1
- Fish2
- SwimFish
- NiceFish
- SoccerImage
- PlanetImage
- SharkImage
- BirdSheepImage
- MarioSonicImage
© 2012 by Stephen Wong