コード例 #1
0
        public PlayWindow(WindowHandler windowHandler)
        {
            this._windowHandler = windowHandler;
            GoodCellList        = new List <GoodCell>();
            VirusList           = new List <Virus>();
            _levelParser        = new LevelParser(this);
            _statsHandler       = Shared.StatsHandler;

            mouseWatch.Start();
        }
コード例 #2
0
ファイル: PlayWindow.cs プロジェクト: em-mo/sommarhack
        public PlayWindow(WindowHandler windowHandler)
        {
            this._windowHandler = windowHandler;
            GoodCellList = new List<GoodCell>();
            VirusList = new List<Virus>();
            _levelParser = new LevelParser(this);
            _statsHandler = Shared.StatsHandler;

            mouseWatch.Start();
        }
コード例 #3
0
        public Game1()
        {
            graphics       = new GraphicsDeviceManager(this);
            contentManager = new ContentManager(Services);
            contentManager.RootDirectory = "Content";
            _windowHandler = new WindowHandler(this);

            this.TargetElapsedTime             = TimeSpan.FromSeconds(1 / FPS);
            graphics.PreferredBackBufferWidth  = 1280; //GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width *3 / 4;
            graphics.PreferredBackBufferHeight = 720;  // GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height * 3 / 4;

            graphics.PreferredBackBufferWidth  = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
            graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height;
            //graphics.IsFullScreen = true;

            this.IsMouseVisible = true;
        }
コード例 #4
0
ファイル: Game1.cs プロジェクト: em-mo/sommarhack
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            contentManager = new ContentManager(Services);
            contentManager.RootDirectory = "Content";
            _windowHandler = new WindowHandler(this);

            this.TargetElapsedTime = TimeSpan.FromSeconds(1 / FPS);
            graphics.PreferredBackBufferWidth = 1280;//GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width *3 / 4;
            graphics.PreferredBackBufferHeight = 720; // GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height * 3 / 4;

            graphics.PreferredBackBufferWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
            graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height;
            //graphics.IsFullScreen = true;

            this.IsMouseVisible = true;
        }