Thursday, July 25, 2013

Adding enemies

Unlike a player's melee attack, melee monsters do not have a sword object. Their attack needs to be drawn into the sprite. I decided to do this since I always considered a player's sword to be a major part of the game. It defines the player just as much as their character sprite. Enemies should be more generic.
I kept the sword swiping code in the enemy AI if I ever wanted add a sword object in the future. Maybe enemies might drop the weapon they were using, so seeing them use the sword would be incentive to take it from them.

No comments:

Post a Comment