示例#1
0
 public PauseScreen(Game1 game)
 {
     Texture = new HUDFactory(game).Texture;
     yDraw   = new List <int> {
         (int)(Game1.HUDHeight * Game1.Scale), (int)((Game1.HUDHeight + height) * Game1.Scale)
     };
     source = new List <Rectangle> {
         new Rectangle(iXOffset, iYOffset, Game1.Width, height),
         new Rectangle(lXOffset, lYOffset, Game1.Width, height),
     };
 }
示例#2
0
 public HUDMiniMap(Game1 game)
 {
     this.game   = game;
     Texture     = new HUDFactory(this.game).Texture;
     currentRoom = this.game.RoomIndex;
 }