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

Report as inappropriate.

nccb
nccb presents ...

2012/5/29

Robots on the Loose

This is the first stage (second stage next week) of a scenario where you must shoot the hordes of robots who have gone haywire and are running towards you.

Use arrow keys to move, and left click on a square to shoot -- but your aim is not perfect, and each move you make, the robots advance towards you.

4504 views / 1027 in the last 7 days

2 votes | 0 in the last 7 days

Tags: with-source

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

2012/8/16

oh, I accidently shoot into the inner wall!囧
yedefeiyedefei

2012/8/16

Why not use the vector form of the shot line with scalar and direction , then give a slight increment of scalar (say 0.1) in each loop to check if collided with the wall ? I think this would be more precise to forbid the bullet running through the wall.
I believe he made it inaccurate on purpose to make it more challenging.

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

Who likes this?

Bytelord SPower