mjrmyke / Asteroids

CSCI 41 Final group project
4 stars 2 forks source link

Jheovanny: Asteroids #2

Open harpiesd96 opened 9 years ago

harpiesd96 commented 9 years ago

Please get the asteroids done.

You could probably just copy the already existing bullet class and just modify it a bit. You could make them QGraphicsEllipseItem to start and make them polygons later (look at how the original asteroid's asteroids looked like). Also, if possible, make them spawn outside the scene and have them drift into the game so one doesn't spawn on top of the ship.

Features I plan the asteroid to have so far: --Constant drift (when it appears it chooses a direction at random and just moves until it hits the edge of the screen)

--Subdivision (when it gets hit, it breaks into 3 smaller asteroids [no need to worry about collision detection right now just have the code ready])

--Rotation (asteroid rotates slowly for intimidation or something)

--Particle effects (when it gets hit, have bits fly off. make them scatter in the general direction the bullet that hit the asteroid was traveling [no need to worry about collision detection right now just have the code ready])

harpiesd96 commented 9 years ago

Tip: make 3 different constructors for the different asteroid sizes, in addition to the default one, to make different asteroid sizes easily.

harpiesd96 commented 9 years ago

make it so that asteroids rotate about their centers for nice visual effects