public static void Initialize(Engine engine) { bear = new Enemy("bear", 70, 40, LevelUpModifiers) { Stats = { MaxHp = 200f, Speed = 100f, Attack = 120f, XpReward = 30, XpForNextLevel = 60, AttackSpeed = 1.3f }, RangeRadius = 1000f, Scale = new Vector2(1.5f, 1.5f) }; wolf = new Enemy("wolf", 50, 20, LevelUpModifiers) { Stats = { MaxHp = 100f, Speed = 150f, Attack = 100f, XpReward = 20, XpForNextLevel = 60, AttackSpeed = 0.66f }, RangeRadius = 1000f, Scale = new Vector2(1.75f, 1.75f) }; rhyno = new Enemy("rhyno", 60, 30, LevelUpModifiers) { Stats = { MaxHp = 300f, Speed = 100f, Attack = 140f, XpReward = 30, XpForNextLevel = 60, AttackSpeed = 1f }, RangeRadius = 1000f, Scale = new Vector2(2.5f, 2.5f) }; AddAnimations(engine); }
public override GameObject Clone() { var go = new Enemy(Name, (int) Width, (int) Height, Stats.LevelUpModifiers); if (Animations != null) { go.Animations = new Dictionary<string, Animation>(); foreach (var animKey in Animations.Keys) { go.Animations[animKey] = Animations[animKey].Clone(); go.Animations[animKey].Owner = go; } } go.RangeRadius = RangeRadius; go.Stats = Stats.Clone(); go.Stats.Owner = go; return go; }