Close
Close full mode
logoMakeCode AP CSP

Projectiles from Sprites Activities

Go to Activity: Projectiles from Sprites.

Complete student tasks 1 and 2.

Tasks

Task 1

  • Modify code to make a target sprite on the other side of the screen from the player sprite.
  • Add a countdown timer.
  • Create an on overlap event for the ball and the target to add a point and destroy the ball.

Shared Project:

Task 1 Challenge

  • Make the target into projectiles that move down the screen.
  • Add vertical motion to the player sprite.

Shared Project:

Example #2

Read through Example #2 Cloudy Day

Task 2

  • Create a projectile that moves across the bottom of the screen that, while moving, gives off different projectiles that "float" to the top of the screen.

Shared Project:

Task 2 Challenge

  • Make the projectile "float" up from the bottom of the game screen and give them a small random X direction so they move at a slight angle left or right.

Shared Project:

Questions

Answer the following reflection questions regarding the projectiles from sprites activities:

  1. How can we make a sprite move from another sprite? Explain the block code to use.
  2. Give examples of using on overlap events in a game to make projectiles that are decorations, laser beams, and coins. Explain each.
  3. Create a hypothesis about why it might be useful to make projectiles have ghost on.

Revise Your sprite story to add projectiles

Insert link to MakeCode Arcade code segment

My revised sprite story with projectiles is:

πŸ“˜ Unit 3 - AAP Part 1 β€” Previous
Projectiles Part 2
Next β€” πŸ“˜ Unit 3 - AAP Part 1
Solutions for Teacher - Projectiles from Sprites