using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; /* * For any questions or help, contact us: * Zepharis Lubrano, 3861368 * zepharislubrano@hotmail.com * Luciano van der Veekens, 3784827 * luciano_vd_veekens@live.nl */ class QuitDuck : AnimatedGameObject { public QuitDuck(GameWorld gameWorld, int layer = 0, string id = "") : base(layer, id) { //Load all the animations this.LoadAnimation(gameWorld, "Sprites/Duck/Die", "die", false); } public override void Update(GameTime gameTime, GameWorld gameWorld) { PlayAnimation("die"); animPlayer.Update(gameTime); } }