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) }); }
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)), }); }