Beispiel #1
0
        public Mage()
        {
            LoadResources();

            EntityType = EntityType.Mage;
            Animations.SetAnimation("Walk_1");

            fireballEmitter = new FireballEmitter ();
            fireballEmitter.ParticleTexture = Moxy.ContentManager.Load<Texture2D> ("Fireball");
            fireballEmitter.OnParticleMonsterCollision += fireballEmitter_OnParticleMonsterCollision;
            ParticleManagers.Add (fireballEmitter);

            Health = MaxHealth = 100;
            Energy = MaxEnergy = 500;
        }
Beispiel #2
0
 public GameState()
     : base("Game", isOverlay: false, acceptsInput: true)
 {
     players = new List<Player> (4);
     lights = new List<Light>();
     monsters = new List<Monster>();
     monsterPurgeQueue = new Queue<Monster>();
     items = new List<Item>();
     itemPurgeQueue = new Queue<Item>();
     redPacketEmitter = new EnergyPacketEmitter();
     FireballEmitter = new FireballEmitter();
     FireballEmitter.OnParticleMonsterCollision += OnBulletCollision;
 }