Exemple #1
0
        public static Enemy Zombie(Vector2 position)
        {
            var monsterAnimations = new Dictionary <string, Animation>()
            {
                { "walking", AnimationDepository.ZombieWalk() }
            };

            var greenArrowAnimation = new Dictionary <string, Animation>()
            {
                { "greenArrow", AnimationDepository.GreenArrowFlying() }
            };

            return(new Enemy(monsterAnimations, position, EnemyType.ELITE)
            {
                Bullet = new Projectile(greenArrowAnimation, position)
            });
        }
Exemple #2
0
        public static Player Mage()
        {
            var fireballAnimation = new Dictionary <string, Animation>()
            {
                { "fireball", AnimationDepository.FireballFlying() }
            };


            var playerAnimations = new Dictionary <string, Animation>()
            {
                { "walking", AnimationDepository.MageWalking() }
            };

            return(new Player(playerAnimations, new Vector2(2900, 900), new Mage())
            {
                Bullet = new Projectile(fireballAnimation, new Vector2(100f)),
            });
        }