As a learning exercise, I am trying to recreate "Asteroids". I've managed to get to the point with a moving ship, that fires bullets, at ever decreasing sizes of 'roids. Large, Medium and Small. Large when hit, splits into 2 new instances of med; med when hit splits into 2 new instances of small; and small when hit is the end of the chain.
I notice the code for each asteroid is very similar, so I would like some help building a parent class for the general asteroid. The problem is that I'm not sure what, and what not to include in the parent.
Each asteroid is an Area2D with coll2D, Timer, Sprite, and a Particle emitter.
I'll leave it there for now and expand with code if anyone can help.
Thanks :)