From 6afd91b0b7cdf79d9bdc0a9f28b2be85bdc583bf Mon Sep 17 00:00:00 2001 From: SergoDobro Date: Sat, 17 Aug 2024 23:34:20 +0300 Subject: [PATCH] hotfixes --- ZoFo/GameCore/Client.cs | 2 +- .../GameObjects/Entities/LivingEntities/Player/Player.cs | 2 +- ZoFo/GameCore/GameObjects/GameObject.cs | 2 +- ZoFo/GameCore/Server.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ZoFo/GameCore/Client.cs b/ZoFo/GameCore/Client.cs index e4da2a7..19252a8 100644 --- a/ZoFo/GameCore/Client.cs +++ b/ZoFo/GameCore/Client.cs @@ -95,7 +95,7 @@ namespace ZoFo.GameCore if ((update as UpdateGameObjectCreated).GameObjectType == "EntittyForAnimationTests") gameObjects.Add(new EntittyForAnimationTests(new Vector2(100, 100))); if ((update as UpdateGameObjectCreated).GameObjectType == "Player") - gameObjects.Add(new Player(new Vector2(100, 100))); + gameObjects.Add(new Player(new Vector2(500, 100))); (gameObjects.Last() as Entity).SetIdByClient((update as UpdateGameObjectCreated).IdEntity); //var a = Assembly.GetAssembly(typeof(GameObject)); diff --git a/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Player/Player.cs b/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Player/Player.cs index 60a489a..c5fccc3 100644 --- a/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Player/Player.cs +++ b/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Player/Player.cs @@ -26,7 +26,7 @@ public class Player : LivingEntity //InputWeaponRotation = new Vector2(0, 0); //InputPlayerRotation = new Vector2(0, 0); - collisionComponent.stopRectangle = new Rectangle(0, 0, 10, 10); + collisionComponent.stopRectangle = new Rectangle(0, 0, 100, 100); graphicsComponent.ObjectDrawRectangle = new Rectangle(0,0,100,100); } diff --git a/ZoFo/GameCore/GameObjects/GameObject.cs b/ZoFo/GameCore/GameObjects/GameObject.cs index 02ed2df..7a4eb43 100644 --- a/ZoFo/GameCore/GameObjects/GameObject.cs +++ b/ZoFo/GameCore/GameObjects/GameObject.cs @@ -91,7 +91,7 @@ public abstract class GameObject } public void DrawDebugRectangle(SpriteBatch spriteBatch, Rectangle _rectangle, Nullable color = null) { - if (color is null) color = new Color(1, 0, 0, 0.25f); + if (color is null) color = new Color(1, 0, 0, 0.1f); if (color.Value.A == 255) color = new Color(color.Value, 0.25f); spriteBatch.Draw(debugTexture, new Rectangle((_rectangle.X - GraphicsComponent.CameraPosition.X) * GraphicsComponent.scaling, diff --git a/ZoFo/GameCore/Server.cs b/ZoFo/GameCore/Server.cs index 924af8b..de52802 100644 --- a/ZoFo/GameCore/Server.cs +++ b/ZoFo/GameCore/Server.cs @@ -83,7 +83,7 @@ namespace ZoFo.GameCore #endregion #region Game Methods - + public CollisionManager collisionManager; /// /// Запуск игры в комнате ///