Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This assignment will build on the Canvas 2 D Asteroids example which was discussed in class. You must use this code as a starting point
This assignment will build on the CanvasD Asteroids example which was discussed in class. You
must use this code as a starting point and build on it rather than starting with your own code base.
Add collisions so that the player can be killed when hitting an asteroid The classic asteroids
game did not have collisions between asteroids.
Add bullets so the player can shoot the asteroids. When shot, large asteroids split into small
asteroids, while small ones are removed from play
Add a scoring system and lives the player gets lives before the game is over
Add some kind of visual explosion effect when the player is killed
Add a levels system so when all asteroids are destroyed, a new larger group of them is
spawned
Add alien spaceships which fly across the screen from time to time if the player is being slow
completing a level. These spaceships shoot at the player as they cross the screen.
Step by Step Solution
★★★★★
3.55 Rating (148 Votes )
There are 3 Steps involved in it
Step: 1
It seems you have been given an assignment to enhance an existing Canvas2D Asteroids game by adding ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started