From a1d209ba37e0115a8b99f94325485b7dea13713e Mon Sep 17 00:00:00 2001 From: SergoDobro Date: Mon, 19 Aug 2024 01:43:34 +0300 Subject: [PATCH] scaling --- .../GameObjects/Entities/LivingEntities/Enemies/Zombie.cs | 2 +- ZoFo/GameCore/Server.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Enemies/Zombie.cs b/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Enemies/Zombie.cs index e37f822..da9e759 100644 --- a/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Enemies/Zombie.cs +++ b/ZoFo/GameCore/GameObjects/Entities/LivingEntities/Enemies/Zombie.cs @@ -17,7 +17,7 @@ namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Enemies health = 5; speed = 2; graphicsComponent.ObjectDrawRectangle = new Rectangle(0, 0, 30, 30); - collisionComponent.stopRectangle = new Rectangle(0, 10, 30, 20); + collisionComponent.stopRectangle = new Rectangle(10, 20, 10, 10); } public override void Update() diff --git a/ZoFo/GameCore/Server.cs b/ZoFo/GameCore/Server.cs index e604cb1..01a01f0 100644 --- a/ZoFo/GameCore/Server.cs +++ b/ZoFo/GameCore/Server.cs @@ -141,6 +141,8 @@ namespace ZoFo.GameCore AppManager.Instance.server.RegisterGameObject(new Zombie(new Vector2(1300, 1000))); AppManager.Instance.server.RegisterGameObject(new Zombie(new Vector2(1500, 1000))); AppManager.Instance.server.RegisterGameObject(new Zombie(new Vector2(1700, 1000))); + AppManager.Instance.server.RegisterGameObject(new Zombie(new Vector2(1900, 1000))); + AppManager.Instance.server.RegisterGameObject(new Zombie(new Vector2(2100, 1000))); AppManager.Instance.server.RegisterGameObject(new Ammo(new Vector2(140, 440))); AppManager.Instance.server.RegisterGameObject(new Ammo(new Vector2(240, 440))); }