예제 #1
0
 public BossPrincess(SuperMario game, Vector2 pos)
 {
     myGame    = game;
     mySprite  = new BossPrincessSprite(myGame.princess);
     rectangle = new Rectangle((int)pos.X, (int)pos.Y, mySprite.Width(), mySprite.Height());
     acc       = new Vector2(0.0f, Utility.Physics_FallingAcc);
     velocity  = new Vector2(0.0f, 0.0f);
     health    = 30;
     ifDead    = false;
 }
예제 #2
0
 public PrincessInDialog(SuperMario game, Vector2 pos, bool ifGoodEnd)
 {
     myGame    = game;
     mySprite  = new BossPrincessSprite(myGame.princess);
     rectangle = new Rectangle((int)pos.X, (int)pos.Y, mySprite.Width(), mySprite.Height());
     acc       = new Vector2(0.0f, 0.2f);
     velocity  = new Vector2(0.0f, 0.0f);
     health    = 30;
     if (ifGoodEnd)
     {
         myDialog = new Subtitle(game, game.spriteBatch, game.Content, "Content/Subtitle/GoodEndDialog.txt", Color.White, true);
     }
     else
     {
         myDialog = new Subtitle(game, game.spriteBatch, game.Content, "Content/Subtitle/BadEndDialog.txt", Color.White, true);
     }
     ifDead  = false;
     GoodEnd = ifGoodEnd;
 }