Quantcast
Viewing all articles
Browse latest Browse all 669

Small Basic - Traffic Light Challenge

One of this month's forum challenges was to create a traffic light system.

Graphics Challenge 2

Draw a traffic light that changes through the correct lighting sequence, perhaps using the Timer object.

Image may be NSFW.
Clik here to view.

We have 2 great answers in, the first by Martin from Germany.

Image may be NSFW.
Clik here to view.

And the second by NaochanOn from Japan which uses different coloured lights.

Image may be NSFW.
Clik here to view.

You can view them in action (as well as see the source code) using SIlverLight with the following links:

http://smallbasic.com/smallbasic.com/program/?MNZ607

http://smallbasic.com/smallbasic.com/program/?KZP715

Note that you can host any of your Small Basic programs online in this way after it is published and you have the 6 character ID.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 669

Trending Articles