diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-06-17 01:34:20 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-06-17 01:34:20 -0400 |
commit | fa2d9b6f912b48f4968f012bce5f14d225395a77 (patch) | |
tree | 4f5e5935dcbcb3a6179f38d4c2e2592d28939cf0 /client/src/main.ts | |
parent | delete compiled js (diff) | |
download | tuxman-fa2d9b6f912b48f4968f012bce5f14d225395a77.tar.gz tuxman-fa2d9b6f912b48f4968f012bce5f14d225395a77.tar.bz2 tuxman-fa2d9b6f912b48f4968f012bce5f14d225395a77.zip |
layout changed
Diffstat (limited to '')
-rw-r--r-- | client/src/main.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/main.ts b/client/src/main.ts index c8a1758..7ac13a3 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -5,7 +5,7 @@ import { GameKeyMap, Frame, Key } from "./types.js"; const join = document.getElementById("join") const lobby = document.getElementById("lobby") -lobby.style.display = "none" +const mapeditor = document.getElementById("mapeditor") join.onsubmit = async function(event) { event.preventDefault() @@ -24,10 +24,15 @@ join.onsubmit = async function(event) { } join.style.display = "none" + mapeditor.style.display = "none" startGame(room_code, player_name) } +mapeditor.onclick = function() { + window.location.href = 'mapeditor.html' +} + const updateGraphics = startGraphicsUpdater() const onLoad = (startData: Frame) => { |