This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

eschoir
eschoir presents ...

2011/3/30

Ants in the Pants

Try to flip the ants into the pants.
Double-Click anywhere to create an ant (multiple ants may be placed with repeated double-clicking).
Click on an ant, drag the mouse opposite the direction of the ant. The farther the mouse is dragged, the higher the speed.

4223 views / 19 in the last 7 days

1 vote | 0 in the last 7 days

Tags: mouse game physics with-source

open in greenfoot
Your browser does not support the canvas tag.
mjrb4mjrb4

2011/3/31

Nice! You could perhaps make it a bit more difficult though by limiting where the ants can go in the world and having them bounce back more if they hit the side of the screen by the trousers?
A new version of this scenario was uploaded on Thu Mar 31 16:27:16 UTC 2011 Restrict the placement of ants to defined area, clicks outside the area will be placed at the perimeter. Reduced size of target zone to make it more challenging, now ants bouncing off back wall have less chance of going in.
eschoireschoir

2011/3/31

Thanks, added update to reduce the size of the target zone, so the ants on the back wall will be less likely to go "in". Defined an active zone for placing ants, if double-click is outside the zone, the ant will be placed at the boundary. I opted for the "dead fall" as a design alternative to an elastic collision in order to limit the number of bounces off the back wall when too much speed is applied by the player.
A new version of this scenario was uploaded on Fri Apr 01 21:22:43 UTC 2011
A new version of this scenario was uploaded on Fri Apr 01 21:24:31 UTC 2011 Ants must be going in downward direction to be caught (can no longer shoot upward into pants). Changed bounce direction from ceiling so ants do not fall into pants after hitting ceiling.
A new version of this scenario was uploaded on Fri Apr 01 21:25:09 UTC 2011
MathManiacMathManiac

2011/4/2

Very addicting! I like it!
A new version of this scenario was uploaded on Fri Jun 03 02:58:56 UTC 2011
A new version of this scenario was uploaded on Fri Jun 03 02:59:10 UTC 2011
A new version of this scenario was uploaded on Sat Jun 11 19:07:06 UTC 2011

Want to leave a comment? You must first log in.

Who likes this?

MathManiac