0001-JS-WHJ-PRO-C4: RETURN OF THE JEWEL THIEF
PRO-C4: RETURN OF THE JEWEL THIEF
Getting Started:
- Login to code.org
- Click on Create and select Game Lab from the drop down menu.
- Rename the project as Project 4 and then click on Save.
- Start making changes to this blank project.
Specific Tasks to Complete the Project:
- Create a square gray sprite on the bottom left corner, which is the thief.
- Create a diamond using a shape on the top right corner.
- Create two laser beams whose width is 200 and height is 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.
- Create EdgeSprites.
- Allow the thief to move using the 4 arrow keys.
- 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”.
- Invite your friend to be Natwarlal and see if he/she can escape your security system.
- Work on the loopholes to create a better security system.
- Click on "Run"once to check if the code is working.
*Interesting trivia: Letting people find loopholes in your security system and fixing them is the key to better security.
Additional Challenge!
- Try and add the AI concept that can also make the beams go diagonally.
Hints:
- The laser beam is just a sprite which moves up and down.
- Use the IsTouching() method to determine if the laser has touched the thief or not.
Comments
Post a Comment