Presentation is loading. Please wait.

Presentation is loading. Please wait.

Diamond Hunt Mock Programming Project.

Similar presentations


Presentation on theme: "Diamond Hunt Mock Programming Project."— Presentation transcript:

1 Diamond Hunt Mock Programming Project. You are part of a team making a game called Diamond Hunt. Other programmers on your team have started the game and you have been tasked with completing it. You will be using scratch to complete the game.

2 Mock Programming Project.
Diamond Hunt Mock Programming Project. You need to add the following features to the game: When the game starts, the miner should say “I am going to be rich!” When a diamond is touched by a miner it should disappear. When a diamond is touched the diamonds collected count should do up by one. When the miner has collected 5 diamonds he should say “I Win” for a second and then the game should stop. A monster should chase the miner When the monster touches the miner it should say “Game Over!” and stop the game. How would a flowchart help you plan?

3 Diamond Hunt Mock Programming Project. Task 1 In your evidence document – write up an introduction to the project and what your program is going to do.

4 Diamond Hunt Mock Programming Project. Task 2 From your list create a flowchart to describe the tasks you need to do. What are flowcharts? Flowcharts – Graphical and verbal illustrations of algorithms. Useful in describing any step by step procedure and making it easier to create programming code SHOW – THE FRIENDSHIP ALGORITHM

5 Mock Programming Project. Task 2 – Cont..
Diamond Hunt Mock Programming Project. Task 2 – Cont.. Practice on a Snakes and ladders game Start Throw the dice Move the coin Landed on a snake head? No – go to 5, Yes go to 4 Slide down the tail of the snake. Go to 8 Landed on the bottom of a ladder? No go to 7, Yes go to 6 Move up the ladder. Go to 8 Reached the last block of the game? No go to 8. Yes go to 9 Give the dice to the other player. Go to 1 Player who has reached the last block has won. Can you make a flowchart out of above?

6

7

8 Mock Programming Project. Task 2 – Cont..
Diamond Hunt Mock Programming Project. Task 2 – Cont.. Practice on a Snakes and ladders game Start Throw the dice Move the coin Landed on a snake head? No – go to 5, Yes go to 4 Slide down the tail of the snake. Go to 8 Landed on the bottom of a ladder? No go to 7, Yes go to 6 Move up the ladder. Go to 8 Reached the last block of the game? No go to 8. Yes go to 9 Give the dice to the other player. Go to 1 Player who has reached the last block has won. Can you make a flowchart out of above?

9 Diamond Hunt Mock Programming Project. Task 2 Create the flowchart for the Diamond hunt project – can you see where IF statements (Decisions) and LOOPS may go? Add this to your evidence document. Use either the Office Shapes Insert or

10 Mock Programming Project. Task 3 Programming your game.
Diamond Hunt Mock Programming Project. Task 3 Programming your game. You need to show the following: Outputting to screen Sequencing instructions Storing data in variables Selection using IF Iteration An arithmetic operator A Boolean operator Comments How are you going to show these in your program – can you identify where these items might feature?

11 Mock Programming Project. Task 3 Add code to complete the following:
Diamond Hunt Mock Programming Project. Task 3 Add code to complete the following: a) Add code to the Miner sprite so when the green flag is pressed the Miner says “I’m going to be rich!” for 1 second. Comment on scratch to explain what will happen. Screenshot your evidence and add it to your document – annotating in detail. Test it to see if it works and show evidence of this. You have now completed “Outputting to screen”

12 Diamond Hunt Mock Programming Project. Task 4 You need to show storing data in variables and IF statements What is an IF Statement? Watch this video by Bill Gates:

13 Mock Programming Project. Task 4 An IF statement in scratch
Diamond Hunt Mock Programming Project. Task 4 An IF statement in scratch The IF() block is a control block. The block will check it’s Boolean condition. If the condition is true, the blocks held inside it will run, and then the script will continue after. If the condition is false then the script inside will be ignored unless there is an ELSE condition.

14 Mock Programming Project. Task 4 Add code to complete the following:
Diamond Hunt Mock Programming Project. Task 4 Add code to complete the following: b) When a diamond is touched by the miner it should disappear. Comment on scratch to explain what will happen. Screenshot your evidence and add it to your document – annotating in detail. Test it to see if it works and show evidence of this. You have now shown a “Selection using IF”

15 Diamond Hunt Mock Programming Project. Task 5 Variables. Variables are used to store values. Why is it important to store values in games? In pairs discuss what values need to be stored in a game? What would happen if the game did not have variables?

16 Mock Programming Project. Task 5
Diamond Hunt Mock Programming Project. Task 5 Look at the following blocks. Describe what you think the following is doing? Which ones are the variables?

17 Mock Programming Project. Task 5 Add code to complete the following:
Diamond Hunt Mock Programming Project. Task 5 Add code to complete the following: c) When a diamond is touched the diamonds collected count should go up by one. Comment on scratch to explain what will happen. Screenshot your evidence and add it to your document – annotating in detail. Test it to see if it works and show evidence of this. You have now shown “Storing data in variables”

18 Mock Programming Project. Task 6 – Another IF
Diamond Hunt Mock Programming Project. Task 6 – Another IF Add code to complete the following: d) When the miner has collected 5 diamonds he should say “I Win” for a second then the game should stop. Comment on scratch to explain what will happen. Screenshot your evidence and add it to your document – annotating in detail. Test it to see if it works and show evidence of this. You have now shown “Selection using IF”

19 Mock Programming Project. Task 7 - Iteration
Diamond Hunt Mock Programming Project. Task 7 - Iteration Using a repeat block can save a lot of scripting This code will be repeated 10 times. How could you change this condition to repeat code until something happens? Watch video on the repeat block.

20 Diamond Hunt Mock Programming Project. Task 7 - Iteration Using a repeat with an exit condition

21 Mock Programming Project. Task 7 – Iteration
Diamond Hunt Mock Programming Project. Task 7 – Iteration Add code to complete the following: (e) Add a sprite of your choice and call it monster. The monster should chase the miner. It will do this by pointing towards the miner and moving one step. It should repeat this process until it is touching the Miner. Comment on scratch to explain what will happen. Screenshot your evidence and add it to your document – annotating in detail. Test it to see if it works and show evidence of this. You have now shown “Iteration

22 Mock Programming Project. Task 8 – IF and broadcasting
Diamond Hunt Mock Programming Project. Task 8 – IF and broadcasting Add code to complete the following: f) When the monster touches the miner it should say “Game Over!” and stop the game. Comment on scratch to explain what will happen. Screenshot your evidence and add it to your document – annotating in detail. Test it to see if it works and show evidence of this. You have now shown another IF Statement

23 Mock Programming Project. Task 9 Add code to complete the following:
Diamond Hunt Mock Programming Project. Task 9 Add code to complete the following: Add code to the blocks you used in (b) so that after the Miner has said “I’m going to be rich” that part of the program waits until 5 diamonds have been collected. The Miner then should say “I win” for one second before the program stops. Comment on scratch to explain what will happen. Screenshot your evidence and add it to your document – annotating in detail. Test it to see if it works and show evidence of this. You have now shown another IF Statement

24 Diamond Hunt Mock Programming Project. Task 10 Evaluating your Game. Write an evaluation of how well your game works. You should include: Any problems you had making it and how you overcame them Any bugs your program still has. Any future improvements that could be made to your program.


Download ppt "Diamond Hunt Mock Programming Project."

Similar presentations


Ads by Google