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