diff options
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) => { |