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

Report as inappropriate.

ialis
ialis presents ...

2009/7/15

Traffic Simulation

A scenario which simulates a simple traffic with cars and semaphores. The semaphores have random initialization and the cars are shifted by specific movements. Each car has a determined behavior when it founds a semaphore which indicates closed way:
* Ambulance object follows in straight line, no smaphore is considered;
* RedCar object turns left the way when semaphore is opened;
* BlueCar object turns right the way when semaphore is opened;
* Greencar object turns back the way when semaphore is opened.

6677 views / 16 in the last 7 days

Tags: space simulation with-source gui

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Wed Jul 15 01:37:11 UTC 2009
mjrb4mjrb4

2009/7/15

Nice start! What about planning out some specific routes to make sure the traffic doesn't hit? :-)
ialisialis

2009/7/15

Thanks for your comment, mjrb4! I'll make a new release solving this problem and changing the background image in order to do a route like a street.
A new version of this scenario was uploaded on Wed Jul 15 12:42:03 UTC 2009
A new version of this scenario was uploaded on Wed Jul 15 12:46:17 UTC 2009

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

Who likes this?

No votes yet.