Goal of the Project:
In Class 5, you learned about variables and applied the concept of variables to create the first independent computer game.
In this project, you will have to practice and apply what you have learnt in the class and help the bird pick up the pie.
Story:
A hungry bird was flying in search of food. It came across a magical meadow where a lot of food was strewn across a huge green field. It came down to pick up a pie... But alas!! It was a trap! A wizard started throwing fireballs at the bird… This bird now needs your help. You have to save the bird and collect as many pies as possible. But be careful, don’t touch the fireball thrown by the wizard!
Getting Started:
Login to code.org
Click on the following link: Project Template
Click on “How it Works”.
Click on “Remix”.
Rename the project to Project 5 and click on Save.
Specific Tasks to complete the Project:
As you can see, the majority of the story is already coded for you.
Add code for the following events:
When the bird touches the pie, increase the score
When the bird touches the fireball, decrease the score.
Display the score on the screen.
Click on "Run" once to check if the code is working
*Refer to the images given above for reference.
Submitting the Project:
SAVE all the changes made to the project.
Click the "SHARE" button to generate a shareable link.
Copy this link and submit it in the Student Dashboard Projects panel against the correct class number.
Hints:
To increase or decrease the score use a combination of the following blocks.
Use the set point to block from the Variable section.
Add the ??? + ??? block from the Math section.
Replace first ??? with the point block from the Variable section.
Replace second ??? with a number block from the Math section
Use the plus or minus sign to increase or decrease the score.
Here is an example of one completed block:
Use the show title screen block from the Games/Score section.
Use this with increase and decrease event blocks.
Pdf of the Script
Comments