- This event has passed.
10:30 AM – Scratch 2 – Yitong
April 22, 2023 @ 10:30 am - 11:30 am
Today we:
- Finished the Lightning Bomb sprite.
- Created and finished the Fireball Power Up sprite.
- Finished the Asteroid sprite.
- Added collision code for the Rocketship sprite and the Asteroid clones, and the Asteroid clones and the Lightning Bomb clones.
- Added invisible walls for the Rocketship sprite for the top and left sides of the screen.
- Added the Fireball variable and kept track of Fireball clones being made and deleted.
- Added game over code.
Homework:
- 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.
- 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.
- 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.
- 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