예제 #1
0
파일: HandZone.cs 프로젝트: jwhee/DBG48
 public HandZone(GameInstance game, Vector2 position)
     : base(game, position)
 {
     this.CardList = this.game.MainPlayer.Hand;
     this.mainPlayer = this.game.MainPlayer;
     this.cardDisplaySize = GameInstance.MAX_HAND_DISPLAY_SIZE;
     this.hoverFrameColor = Color.HotPink;
 }
예제 #2
0
파일: GameInstance.cs 프로젝트: jwhee/DBG48
        public GameInstance()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferMultiSampling = true;
            Content.RootDirectory = "Content";

            this.IsMouseVisible = true;
            //Window.AllowUserResizing = true;
            Window.Title = "DBG48";

            graphics.PreferredBackBufferWidth = 800;
            graphics.PreferredBackBufferHeight = 500;

            controller = new Controller(this);
            randGen = new Random();
            MainPlayer = new Player(this);
        }