Construct the interactive app shown on the right.
- In this game, the player uses the arrow keys
key-up and key-down to direct the child
character across a busy street.
- The canvas is divided into five horizontal
sections. The top and botton sections are
sidewalks. The three middle sections are
street lanes.
- Each street lane contains a car that moves
at a given speed in a given direction.
- The child character is returned to its original
sidewalk location if it collides with a car.
- The goal of the game is to guide the child to
the sidewalk at the top of the busy street.\
|
|