protected override void FirstEnemy() { Animation dayEnemey1WalkingAnimation = new Animation(); Texture2D dayEnemey1WalkingTexture; Animation dayEnemy1AttackAnimation = new Animation(); Texture2D dayEnemey1AttackTexture; Animation dayEnemey1DeathAnimation = new Animation(); Texture2D dayEnemey1DeathTexture; dayEnemey1WalkingTexture = content.Load<Texture2D>("DayEnemy1\\DayEnemy1Walking"); dayEnemey1WalkingAnimation.Initialize(dayEnemey1WalkingTexture, Vector2.Zero, 49, 71, 4, 100, Color.White, 1f, true); dayEnemey1AttackTexture = content.Load<Texture2D>("DayEnemy1\\DayEnemy1Attack"); dayEnemy1AttackAnimation.Initialize(dayEnemey1AttackTexture, Vector2.Zero, 83, 90, 6, 100, Color.White, 1f, true); dayEnemey1DeathTexture = content.Load<Texture2D>("DayEnemy1\\DayEnemy1Death"); dayEnemey1DeathAnimation.Initialize(dayEnemey1DeathTexture, Vector2.Zero, 86, 90, 3, 400, Color.White, 1f, true); enemy1 = new Enemy1(); enemy1.Initialize(dayEnemey1WalkingTexture, position, dayEnemy1AttackAnimation, dayEnemey1WalkingAnimation, dayEnemey1DeathAnimation, this); enemey1List.Add(enemy1); }
protected override void FirstEnemy() { Animation dayEnemey1WalkingAnimation = new Animation(); Texture2D dayEnemey1WalkingTexture; Animation dayEnemy1AttackAnimation = new Animation(); Texture2D dayEnemey1AttackTexture; Animation dayEnemey1DeathAnimation = new Animation(); Texture2D dayEnemey1DeathTexture; dayEnemey1WalkingTexture = content.Load<Texture2D>("Level2Enemy1\\Level2Enemy1Walking"); dayEnemey1WalkingAnimation.Initialize(dayEnemey1WalkingTexture, Vector2.Zero, 62, 104, 4, 100, Color.White, 1f, true); dayEnemey1AttackTexture = content.Load<Texture2D>("Level2Enemy1\\Level2Enemy1Attacking"); dayEnemy1AttackAnimation.Initialize(dayEnemey1AttackTexture, Vector2.Zero, 142, 97, 3, 100, Color.White, 1f, true); dayEnemey1DeathTexture = content.Load<Texture2D>("Level2Enemy1\\Level2Enemy1Death"); dayEnemey1DeathAnimation.Initialize(dayEnemey1DeathTexture, Vector2.Zero, 98, 83, 4, 450, Color.White, 1f, true); enemy1 = new Enemy1(); enemy1.Initialize(dayEnemey1WalkingTexture, position, dayEnemy1AttackAnimation, dayEnemey1WalkingAnimation, dayEnemey1DeathAnimation, this); enemey1List.Add(enemy1); }