Create Game in MakeCode Arcade: Develop and Practice Performance Task

mock create performance task n.w
1 / 15
Embed
Share

"Learn how to develop a game in MakeCode Arcade, identify program elements, write responses, take screenshots, set backgrounds, create arrays, manipulate sprites, and engage players in a fun coding challenge."

  • Coding
  • Game Development
  • MakeCode
  • Performance Task
  • Programming

Uploaded on | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.

E N D

Presentation Transcript


  1. Mock Create Performance Task

  2. Mock Create Performance Task goals Create Performance Task run through. Develop a game in MakeCode Arcade. Identify required program elements for CPT. Practice writing responses for CPT. Practice taking screencast and screenshots for CPT.

  3. Yogis Picnic Basket Create background, set arrays, set sprites

  4. Set background and create arrays Use starter code for the background. Rename the project. Comment your code. Use meaningful variable names. Create sprite array of picnic food: will include the items that fall out of Yogi s basket. Create string array of picnic food: will be the names of food items in your sprite array. your program will compare the user s entries to this list.

  5. Sprite array and string array solution Create sprite array (use set list to block) Replace array of section of block with empty array Select plus sign 5x; then drag empty image from picnicFood block to empty variable Add images to sprite array Create string array of picnic foods that match the sprites selected/created

  6. Spilled basket- Show food sprites on screen Make all the picnic food sprites appear briefly on the blanket background.

  7. Does this code work? Add a delay to see each sprite displayed For loop for 0 to 4 Set picnicFood image to each image in the array Use pause or music block

  8. Player input - What was in Yogis basket? Ask the player to remember the picnic basket items. Make sure there are no hints of food on the blanket.

  9. What was in Yogis basket? - Solution Destroy mySprite. Set guess to ask for string What was in Yogi s basket?

  10. Check user input Compare each item in the array with the player s guess. Let the player know if the guess is correct or incorrect by playing a sound. Set up a way to keep score. Set up a way to keep track of misses. Let the player know their score or number of misses. Use a Function (Procedure) to do this

  11. Check user input- Solution (for index loop) Create a function to check player guesses Create a new variable called match Compare each item in the array with the player s text If guess is correct, set match to 1 Let the player know if the guess is correct or incorrect by playing a sound Match = 1 correct sound, scoresplashed Match = 0 miss sound, # of misses splashed Call evaluateGuess in on Start

  12. Check user input- Solution (for element loop)

  13. Keep guessing How many guesses (right or wrong) can the player make before the game is over? Let the player continue guessing until they win or lose.

  14. Keep guessing - Solution Create functions to checkScore and checkStrikes if Score = 5, WIN! if Strikes = 3, lose Call checkScore and checkStrikes in evaluateGuess Let the player continue guessing until they win or lose While score is less than 5 or strikes is less than 3, ask for string What was in Yogi s basket? Call evaluateGuess to check answer

  15. Enhancements Randomize the food sprites. Add directions before they see the spilled food.

Related


More Related Content