American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

10:30 AM – Scratch 2 – Yitong

April 22, 2023 @ 10:30 am - 11:30 am

Today we:
  1. Finished the Lightning Bomb sprite.
  2. Created and finished the Fireball Power Up sprite.
  3. Finished the Asteroid sprite.
  4. Added collision code for the Rocketship sprite and the Asteroid clones, and the Asteroid clones and the Lightning Bomb clones.
  5. Added invisible walls for the Rocketship sprite for the top and left sides of the screen.
  6. Added the Fireball variable and kept track of Fireball clones being made and deleted.
  7. Added game over code.
Homework:
  1. Add an invisible wall for the right side of the screen. The Rocketship sprite should stop once the x is past 200. Do this code in the if D-key pressed code.
  2. Add an invisible wall for the bottom of the screen. The Rocketship sprite should stop once the y is past -150. Do this code in the if S-key pressed code.
  3. Add a Lightning Bomb variable. Set the variable to 5 at the beginning of the game. Each time the B-key is pressed, check if you have more than 0 Lightning Bombs. When you create a clone, make the Lightning Bomb variable go down by 1.
  4. Make a Lightning Bomb Power Up sprite. Do the same code that we did for our Fireball Power Up. When you pick up a Lightning Bomb Power Up clone, make the Lightning Bomb variable go up by 1.

Submit your homework here: yitong@ayclogic.com

Details

Date:
April 22, 2023
Time:
10:30 am - 11:30 am
Event Categories:
,
Verified by MonsterInsights