Esempio n. 1
0
 public override void Update(float elapsed)
 {
     Console.WriteLine("updateAbstr");
     Console.WriteLine(Velocity);
     FireBall.Update(elapsed);
     base.Update(elapsed);
 }
Esempio n. 2
0
        public override void Update(float elapsed)
        {
            Vector2 acc = new Vector2(0f, 5f);

            FireBall.Update(elapsed);
            FireBall.Velocity += acc;
            base.Update(elapsed);
        }
Esempio n. 3
0
        //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);
        }
Esempio n. 4
0
 public override void Draw(SpriteBatch batch)
 {
     FireBall.Draw(batch);
     base.Draw(batch);
 }