summaryrefslogtreecommitdiff
path: root/client/src/main.ts
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-06-29 20:29:54 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-06-29 20:29:54 -0400
commitc66865d431532330194f6b845160e01a7ba003ab (patch)
tree99e1e6384592371089fd1aefc388b96b22107b82 /client/src/main.ts
parentupdate dockerfile (diff)
downloadtuxman-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.ts6
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) => {