0001-JS-WHJ-PRO-C4: RETURN OF THE JEWEL THIEF



PRO-C4: RETURN OF THE JEWEL THIEF



 


Getting Started:
  1. Login to code.org
  2. Click on Create and select Game Lab from the drop down menu.
  3. Rename the project as Project 4 and then click on Save.
  4. Start making changes to this blank project.
Specific Tasks to Complete the Project:
  1. Create a square gray sprite on the bottom left corner, which is the thief.
  2. Create a diamond using a shape on the top right corner.
  3. img1
  4. Create two laser beams whose width is 200 and height is 5
  5. Design the positioning and movement of the laser beams so that it is impossible for Natwarlal to reach the diamond before touching one of these laser beams.5. Create EdgeSprites.
  6. Create EdgeSprites.
  7. Allow the thief to move using the 4 arrow keys.
  8. img1
  9. Add code for the following event:
    • When any of the laser beams touches the thief, all the movements in the game should stop
    • Display a message “Thief is caught”.
  10. Invite your friend to be Natwarlal and see if he/she can escape your security system.
  11. Work on the loopholes to create a better security system.
  12. *Interesting trivia: Letting people find loopholes in your security system and fixing them is the key to better security.

  13. Click on "Run"once to check if the code is working.

Additional Challenge!

  • Try and add the AI concept that can also make the beams go diagonally.

Hints:
  1. The laser beam is just a sprite which moves up and down.
  2. img1
  3. Use the IsTouching() method to determine if the laser has touched the thief or not.
  4. img1

Comments

Popular posts from this blog

0004-JS-WHJ-PRO-C8: THE WORLD’S HARDEST GAME

0000-JS-WHJ-PRO-C2: SQUARIADS