Renderování textu, jumpscary, win a lose screen

This commit is contained in:
Perry 2026-03-09 20:05:21 +01:00
parent 9bfe63a166
commit e6128dc9f5
21 changed files with 360 additions and 84 deletions

View file

@ -30,10 +30,6 @@ public class SpotEnemy : Enemy {
Server.SendUpdateToAll([GameEvent.ENEMY_RESET(Id, Location.Id)]);
}
public override void Attack(ServerPlayer player) {
throw new NotImplementedException();
}
public override void Update() {
if (GameLogic.NSecondUpdate){
if(!movementOpportunity.Running)
@ -65,7 +61,7 @@ public class SpotEnemy : Enemy {
Reset();
}
else if (pathId == path.Length - 1){
Attack(Server.P1);
Attack(Server.P2);
}
}
else if (p2WatchCounter > p1WatchCounter){
@ -74,7 +70,7 @@ public class SpotEnemy : Enemy {
Reset();
}
else if (pathId == 0){
Attack(Server.P2);
Attack(Server.P1);
}
}