Enemies

Gemstone Hunter is pretty easy right now. You are free to run around collecting all of the gems you want at your own pace with no chance of ever triggering the dreaded "die" animation. Not for much longer, though—time to add some zombies to the mix!

As with the Player and Gemstone classes, the Enemy class will be derived from the GameObject class, allowing it to exist within the world and, like the Player class, detect collisions with the tile map.

Get XNA 4.0 Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.