Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 629 Bytes

README.md

File metadata and controls

8 lines (8 loc) · 629 Bytes

semaphore-js

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