JS Scratch Game Challenge: Road Crossing Game Advanced

Challenge Description
Scratch Game Challenge Road Crossing Advanced
Summary: Cross the road collecting the treasures while avoiding the cars within 30 seconds for each of the 4 levels.
– player moves based on keyboard or GamePad inputs
– gameover if touches cars
– player must collect both treaure sprites
– level 2 and 4 increases the speed of cars with same road
– level 3 changes road background
– player needs to start at random position on the lower green section
– vehicles need to travel in opposite directions on either side of the road
– winner if complete level 4 within 30 seconds
Flowchart
Instructions
Complete the Simulator Coding Challenge in the ScratchBlocks Editor, save your file then upload under the Submission heading below, then check your GradeBook for feedback and a grade