Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// A slow moving, mindless zombie.
- /// </summary>
- public class Zombie : Enemy
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="Zombie"/> class.
- /// </summary>
- /// <param name="dungeon">The dungeon.</param>
- /// <param name="room">The dungeon room the entity is in.</param>
- public Zombie(Dungeon dungeon, DungeonRoom room)
- : base(dungeon, room)
- {
- this.AddComponent(new BoundsComponent(32, 32));
- this.AddComponent(new SpriteComponent(@"Textures\zombie"));
- this.AddComponent(new EnemyMovementComponent(dungeon, room, 150f, 30f, MathHelper.Pi, 1f, MovementPattern.Wander, MovementType.Walk));
- this.GetComponent<EnemyMovementComponent>().Steering.WanderRadius = 50f;
- this.GetComponent<EnemyMovementComponent>().Steering.WanderDistance = 16f;
- this.AddComponent(new EnemyAIComponent(room, EnemyAIType.Aggressive));
- }
- }
Add Comment
Please, Sign In to add comment