From 38c6691180aa3cf0f0f44085a8d41f61305d0fed Mon Sep 17 00:00:00 2001 From: Syntriax Date: Mon, 27 Nov 2023 17:06:33 +0300 Subject: [PATCH] chore: Screen Improvements --- Game/Game1.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Game/Game1.cs b/Game/Game1.cs index fdaf183..6c110ce 100644 --- a/Game/Game1.cs +++ b/Game/Game1.cs @@ -1,4 +1,4 @@ -using System; +using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; @@ -18,7 +18,11 @@ public class Game1 : Game public Game1() { - _graphics = new GraphicsDeviceManager(this); + _graphics = new GraphicsDeviceManager(this) + { + PreferredBackBufferWidth = 1024, + PreferredBackBufferHeight = 576 + }; Content.RootDirectory = "Content"; IsMouseVisible = true; } @@ -56,7 +60,7 @@ public class Game1 : Game IGameObject gameObjectLeft = gameManager.InstantiateGameObject(); gameObjectLeft.Name = "Left"; - gameObjectLeft.Transform.Position = new Vector2(-350f, 0f); + gameObjectLeft.Transform.Position = new Vector2(-452, 0f); gameObjectLeft.Transform.Scale = new Vector2(10f, 40f); gameObjectLeft.BehaviourController.AddBehaviour(); gameObjectLeft.BehaviourController.AddBehaviour(Keys.W, Keys.S, 268f, -268f, 400f); @@ -64,7 +68,7 @@ public class Game1 : Game IGameObject gameObjectRight = gameManager.InstantiateGameObject(); gameObjectRight.Name = "Right"; - gameObjectRight.Transform.Position = new Vector2(350f, 0f); + gameObjectRight.Transform.Position = new Vector2(452, 0f); gameObjectRight.Transform.Scale = new Vector2(10f, 40f); gameObjectRight.BehaviourController.AddBehaviour(); gameObjectRight.BehaviourController.AddBehaviour(Keys.Up, Keys.Down, 268f, -268f, 400f);