College Project The idea of the project was to implement a simple webmage with a crossing pass controled by 2 semaphores and sometimes (randomic) the cars would turn on the street and, otherwise they would go straight. It should be controled by time and dont let car's crash. I used object Date() to control it by time, and math.random to implement some times the car would turn. The project to work properly you must choose a background picture, 2 small cars, 1 horizontal 1 vertical aligned, and 2 semaphores, I add the one's i used but you can change and put it on /elements (cars, background) /signs semaphores
-
Notifications
You must be signed in to change notification settings - Fork 0
ierdna-f/semaphore-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
College Project
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published