public override void Update(float elapsed) { Console.WriteLine("updateAbstr"); Console.WriteLine(Velocity); FireBall.Update(elapsed); base.Update(elapsed); }
public override void Update(float elapsed) { Vector2 acc = new Vector2(0f, 5f); FireBall.Update(elapsed); FireBall.Velocity += acc; base.Update(elapsed); }
//Method to create mario objects public override ISprite getSprite(int type) { ISprite newMario = null; DateTime expiration = new DateTime(2033, 8, 16); switch (type) { case (int)MarioTypes.NORMAL: newMario = new MiniMario1(Content); break; case (int)MarioTypes.SUPER: newMario = new BigMario1(Content); break; case (int)MarioTypes.FIRE: newMario = new FireMario1(Content); break; case (int)MarioTypes.STARMINI: newMario = new MiniStarMario1(Content); break; case (int)MarioTypes.STARBIG: newMario = new BigStarMario1(Content); break; case (int)MarioTypes.FIREBALL: newMario = new FireBall(Content); break; default: break; } return(newMario); }
public override void Draw(SpriteBatch batch) { FireBall.Draw(batch); base.Draw(batch); }