• entries
686
1952
• views
387718

87 views

Got my first enemies working:

They're supposed to be UFOs, but as we all know I'm not a great artist...

I was worried that my grand plan for an enemy manager handled through polymorphism wouldn't work. Now that I went through with it, I'm really glad that I did.

These enemies I have are currently hard-coded into the game, but soon I will make it so that I can place the enemies through the level format.

But it is so cool how I can add an enemy just by making this call:
Spawn(new E_UFO(50, 200));

I put E_ in front of the enemy class names just as a naming convention.

Anyways, I'll get to work on adding more enemies[smile]

Now fit the list of enemy genres into a hashmap so you can call:

Spawn("UFO", 40, 160);

:)

Awesome!

Just a random thought: try putting little colored lights around the base of the UFO, and have them spin with your animation system. In my imagination, it looks really cool.

Actually the UFO's do have a spinning animation right now, but attaching little lights would make it look better. I'll give it a try.

## Create an account

Register a new account