I need to create a Space Invaders kind of game and I have a demo I need to copy the main features from. The invaders have to be of at least 3 different types and they change color.
So I figured the invaders are 3 child classes from a parent 'Invader' class that will have the methods of painting, moving, etc. What would be the best way to control the destruction of the invaders? I've read on this forum that a 'linked list' would be a way of doing just that. I don't know what a linked list is. So should I create an array that will store the position of the bullets (with a maximum of maybe 40 bullets). Is there a way to dynamically allocate memory for the bullets' position as they are created so I don't have an array of say 100 and use only 40?
The game will have sounds and the demo we've been given uses sound files located in the same folder the .exe is in, so they're not embedded (if that's how you would call it) or anything of that sort. The .exe is also got an icon.
We've been using PaintBox to draw stuff on application forms in Borland Builder so I think that's how it will be this time around too.
If you wish I can attach the demo folder.
Thanks in advance