added live map

This commit is contained in:
2024-06-08 08:10:27 +00:00
parent 9615d4fecd
commit 1f7df64b5f
6 changed files with 127 additions and 251 deletions

View File

@@ -35,19 +35,7 @@ export const io = new Server(httpsServer, {
}
});
//Zone update broadcast function, called by the game object
function onUpdateNewZone(newZone) {
playersBroadcast("new_zone", newZone)
secureAdminBroadcast("new_zone", newZone)
}
function onUpdateZone(zone) {
playersBroadcast("zone", zone)
secureAdminBroadcast("zone", zone)
}
export const game = new Game(onUpdateZone, onUpdateNewZone);
export const game = new Game();
export const penaltyController = new PenaltyController();