diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-06-29 20:29:54 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-06-29 20:29:54 -0400 |
commit | c66865d431532330194f6b845160e01a7ba003ab (patch) | |
tree | 99e1e6384592371089fd1aefc388b96b22107b82 /client/src/main.ts | |
parent | update dockerfile (diff) | |
download | tuxman-c66865d431532330194f6b845160e01a7ba003ab.tar.gz tuxman-c66865d431532330194f6b845160e01a7ba003ab.tar.bz2 tuxman-c66865d431532330194f6b845160e01a7ba003ab.zip |
when players die, they should acutally fucking die
Diffstat (limited to '')
-rw-r--r-- | client/src/main.ts | 6 |
1 files changed, 2 insertions, 4 deletions
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) => { |