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

Report as inappropriate.

Super_Hippo
Super_Hippo presents ...

2015/10/19

Traffic Simulation 3

New in this version are ambulances, a separated lane for the right-turning traffic, and cars using blinkers.

Controls:
Click on the +/- to increase/decrease the amount of cars (red) and bicycles (blue) coming from this side.
Left mouse button to increase/decrease by 1% of the bar, right mouse button 5% and a click on the mouse wheel sets it to maximum/minimum. (As in version 2, it is still a square function, so 1% is like one car every four hours and 100% is about one car every two seconds.)
Press "m" to set everything to maximum, "n" to set everything to minimum (no traffic).
Press "+" and "-" to increase/decrease the execution speed and "0" to set it back to normal.
Press "c" to toggle the "Crazy Mode". In this mode, the +/- indicators doesn't mean anything, cars and bicycles will just spawn. (No ambulances in the crazy mode. Cars rarely "crash". I know why, but didn't manage to prevent it to happen yet.) It was more like a testing mode but I decided to keep it.

4973 views / 27 in the last 7 days

4 votes | 0 in the last 7 days

Tags: mouse simulation with-source light system traffic road signal cross

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

2015/10/26

i love it!! great job!! :D
Super_HippoSuper_Hippo

2015/10/26

Thank you :)
felagundfelagund

2016/2/5

very nice, congrats. i've an idea, please put a button to switch of the lights and let us see the chaos :)
A new version of this scenario was uploaded on 2019-05-28 10:33:25 UTC Updated to Greenfoot 3.5.2
EragonEragon

2024/5/29

Hi Hippo, Really good job with the game! I'm currently trying to program something similar and it would be of immeasurable help if you could make it available to download or provide access to certain actors/classes. If you're not comfortable with that, I completely understand. I wouldn't use it to make money or anything. If you would prefer to use a private channel, that would be fine with me too, although I'm not sure if that's possible here. --- Nochmal auf Deutsch, echt cooles Projekt!
A new version of this scenario was uploaded on 2024-05-29 22:03:24 UTC Published source code
Super_HippoSuper_Hippo

2024/5/29

Hi Eragon. Thank you :) I just published the source code. However, it’s quite a mess to say the least. Feel free to take a look.
Super_HippoSuper_Hippo

2024/5/29

But it was also a bit of fun looking through the code and compare the sometimes ridiculous thoughts I had nine years ago with the actual things I’m doing in my daily job programming traffic lights nowadays.

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

Who likes this?

RcCookie Nosson1459 Game/maniac AngelusNeko13