Answered step by step
Verified Expert Solution
Link Copied!

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 Canvas2D 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 3 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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Organization and Design The Hardware Software Interface

Authors: David A. Patterson, John L. Hennessy

5th edition

124077269, 978-0124077263

More Books

Students also viewed these Programming questions

Question

6.66 Find zo such that P(-zo

Answered: 1 week ago