Renderování textu, jumpscary, win a lose screen
This commit is contained in:
parent
9bfe63a166
commit
e6128dc9f5
21 changed files with 360 additions and 84 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using FNAF_Server.Map;
|
||||
using GlobalClassLib;
|
||||
using PacketLib;
|
||||
|
||||
namespace FNAF_Server.Enemies;
|
||||
|
||||
|
|
@ -18,9 +19,12 @@ public abstract class Enemy : GlobalEnemy<MapTile, TileConnector> {
|
|||
public override void Spawn(MapTile location) {
|
||||
base.Spawn(location);
|
||||
Spawned = true;
|
||||
// EnemyManager.AddEnemy(this);
|
||||
}
|
||||
|
||||
public abstract void Reset();
|
||||
public abstract void Attack(ServerPlayer player);
|
||||
|
||||
public virtual void Attack(ServerPlayer player) {
|
||||
Server.SendUpdateToAll([GameEvent.ENEMY_ATTACK(Id, player.state.pid)]);
|
||||
GameLogic.DeclareWinner(Server.OtherPlayer(player));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue