Do Now 3.2 Sprite Control

Open the following Starter code

Add scripting to do the following

  1. Move Dino up 1 unit at a time when you press the arrow up key. You must use the change y by block.

  2. Move Dino down 1 unit at a time when you press the arrow down key. You must use the change y by block.

  3. Don’t let Dino leave the screen.

  4. Don’t let Dino go through the platform.

  5. Don’t let Dino go underground.