From c66865d431532330194f6b845160e01a7ba003ab Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 29 Jun 2023 20:29:54 -0400 Subject: when players die, they should acutally fucking die --- client/src/main.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'client/src/main.ts') diff --git a/client/src/main.ts b/client/src/main.ts index af985db..8e69037 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -49,8 +49,6 @@ mapeditor.onclick = function() { window.location.href = 'mapeditor.html' } -const updateGraphics = startGraphicsUpdater() - const onLoad = (startData: Frame) => { if (startData.data.started) { @@ -71,10 +69,10 @@ const onLoad = (startData: Frame) => { return true } +const updateGraphics = startGraphicsUpdater() + const onFrame = (data: Frame, frame: number) => { - updateGraphics(data ? data.data : InitialState, frame); - } const startGame = (code: string, name: string) => { -- cgit v1.2.3-freya