Esempio n. 1
0
        protected override void Initialize()
        {
            graphics.PreferredBackBufferWidth  = screenResolutionWidth;
            graphics.PreferredBackBufferHeight = screenResolutionHeight;
            //graphics.IsFullScreen = true;
            graphics.ApplyChanges();

            this.IsMouseVisible = true;

            aColor = Color.White;

            debugText = new TextDisplay(this.Content, "test", new Vector2(0, 20));

            anEntity = new Entity();
            anEntity.EntityPosition = new Vector2(100, 100);
            anEntity.AColor         = Color.Red;

            base.Initialize();
        }
Esempio n. 2
0
        protected override void Initialize()
        {
            graphics.PreferredBackBufferWidth = screenResolutionWidth;
            graphics.PreferredBackBufferHeight = screenResolutionHeight;
            //graphics.IsFullScreen = true;
            graphics.ApplyChanges();

            this.IsMouseVisible = true;

            aColor = Color.White;

            debugText = new TextDisplay(this.Content, "test", new Vector2(0, 20));

            anEntity = new Entity();
            anEntity.EntityPosition = new Vector2(100,100);
            anEntity.AColor = Color.Red;

            base.Initialize();
        }