diff --git a/Game/Game1.cs b/Game/Game1.cs index 5ea16da..f8632c3 100644 --- a/Game/Game1.cs +++ b/Game/Game1.cs @@ -112,8 +112,8 @@ public class Game1 : Game IGameObject gameObjectWallTop = gameManager.InstantiateGameObject(); gameObjectWallTop.Name = "WallTop"; - gameObjectWallTop.Transform.Position = new Vector2D(0f, 298f); - gameObjectWallTop.Transform.Scale = new Vector2D(542f, 20f); + gameObjectWallTop.Transform.Position = new Vector2D(0f, 308f); + gameObjectWallTop.Transform.Scale = new Vector2D(552f, 20f); gameObjectWallTop.BehaviourController.AddBehaviour(Shape.Box); RigidBody2D rigidBodyWallTop = gameObjectWallTop.BehaviourController.AddBehaviour(); rigidBodyWallTop.IsStatic = true; @@ -121,8 +121,8 @@ public class Game1 : Game IGameObject gameObjectWallBottom = gameManager.InstantiateGameObject(); gameObjectWallBottom.Name = "WallBottom"; - gameObjectWallBottom.Transform.Position = new Vector2D(0f, -298f); - gameObjectWallBottom.Transform.Scale = new Vector2D(542f, 20f); + gameObjectWallBottom.Transform.Position = new Vector2D(0f, -308f); + gameObjectWallBottom.Transform.Scale = new Vector2D(552f, 20f); gameObjectWallBottom.BehaviourController.AddBehaviour(Shape.Box); RigidBody2D rigidBodyWallBottom = gameObjectWallBottom.BehaviourController.AddBehaviour(); rigidBodyWallBottom.IsStatic = true; @@ -130,8 +130,8 @@ public class Game1 : Game IGameObject gameObjectWallRight = gameManager.InstantiateGameObject(); gameObjectWallRight.Name = "WallRight"; - gameObjectWallRight.Transform.Position = new Vector2D(522f, 0f); - gameObjectWallRight.Transform.Scale = new Vector2D(20f, 318f); + gameObjectWallRight.Transform.Position = new Vector2D(532f, 0f); + gameObjectWallRight.Transform.Scale = new Vector2D(20f, 328f); gameObjectWallRight.BehaviourController.AddBehaviour((Action)pongScoreboard.ScoreToLeft); gameObjectWallRight.BehaviourController.AddBehaviour(Shape.Box); RigidBody2D rigidBodyWallRight = gameObjectWallRight.BehaviourController.AddBehaviour(); @@ -140,8 +140,8 @@ public class Game1 : Game IGameObject gameObjectWallLeft = gameManager.InstantiateGameObject(); gameObjectWallLeft.Name = "WallLeft"; - gameObjectWallLeft.Transform.Position = new Vector2D(-522f, 0f); - gameObjectWallLeft.Transform.Scale = new Vector2D(20f, 318f); + gameObjectWallLeft.Transform.Position = new Vector2D(-532f, 0f); + gameObjectWallLeft.Transform.Scale = new Vector2D(20f, 328f); gameObjectWallLeft.BehaviourController.AddBehaviour((Action)pongScoreboard.ScoreToRight); gameObjectWallLeft.BehaviourController.AddBehaviour(Shape.Box); RigidBody2D rigidBodyWallLeft = gameObjectWallLeft.BehaviourController.AddBehaviour(); @@ -149,8 +149,7 @@ public class Game1 : Game engine.AddRigidBody(rigidBodyWallLeft); //////////////////////////////////////////////////////////////////////////////////// - /// - /// + IGameObject gameObjectLeftScoreText = gameManager.InstantiateGameObject(); gameObjectLeftScoreText.Name = "Score Left"; gameObjectLeftScoreText.Transform.Position = new Vector2D(-250f, 250f);