I know this is probably a really simple question with a simple answer, but I have looked for hours and hours and not found anything that can help me. Here's the problem:
I'm making a 2D game which will present each character and enemy as a different sprite. So far, everything has been represented in a panel (player, background, menus, etc). The problem is, I want to have way more than one enemy on screen at a time. The only way I know how to do this is to write out a new panel definition for each enemy and make my script unbearably complex.
Is there some kind of way to create a sprite entity, of which I can just create more instances instead of having to code each individual enemy? Kind of an enemy "class", for a more java-like explanation.