AddPlayersMerge

This commit is contained in:
AnloGames 2024-08-23 15:19:56 +03:00
commit 178a05079a
3 changed files with 13 additions and 5 deletions

View file

@ -316,10 +316,11 @@ namespace ZoFo.GameCore
(ent as Player).rad = (update as UpdatePlayerParametrs).radiatoin;
}
}
public bool changeGUI = false;
public void GameEnd()
{
AppManager.Instance.SetGUI(new FinishingGUI());
changeGUI = true;
}
public Entity FindEntityById(int id)

View file

@ -127,7 +127,14 @@ namespace ZoFo.GameCore.GameManagers
default:
break;
}
if (client != null)
{
if (client.changeGUI)
{
SetGUI(new FinishingGUI());
client.changeGUI = false;
}
}
base.Update(gameTime);
}

View file

@ -22,7 +22,7 @@ namespace ZoFo.GameCore.GameObjects
public Zombie(Vector2 position) : base(position)
{
health = 5;
speed = 2.0f;
speed = 7.5f;
graphicsComponent.ObjectDrawRectangle = new Rectangle(0, 0, 30, 30);
collisionComponent.stopRectangle = new Rectangle(10, 20, 10, 10);
isAttacking = false;
@ -98,7 +98,7 @@ namespace ZoFo.GameCore.GameObjects
//TODO ДАМАЖИТЬ ИГРОКОВ В ЗОНЕ
if (damagedPlayers.Length>0) { DebugHUD.DebugLog("End of" + a);
foreach (var item in damagedPlayers)
item.TakeDamage(1);
item.TakeDamage(20);
}
}