From 08900ab35c241aa7fd7c49ab8a9bf1c7c59cc0a7 Mon Sep 17 00:00:00 2001 From: pegasuspect <1279406+pegasuspect@users.noreply.github.com> Date: Fri, 31 Jul 2026 23:22:48 -0400 Subject: [PATCH] Add map editor route and create map-editor.html file --- index.js | 5 ++ map-editor.html | 208 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 213 insertions(+) create mode 100644 map-editor.html diff --git a/index.js b/index.js index cdaf736..5bed74c 100644 --- a/index.js +++ b/index.js @@ -12,6 +12,11 @@ app.get('/', (req, res) => { res.sendFile(__dirname + '/index.html'); }); +// Map Editor route +app.get('/map-editor', (req, res) => { + res.sendFile(__dirname + '/map-editor.html'); +}); + io.on('connection', (socket) => { socket.on('position', player => { let p = players.find(x => x.id === player.id); diff --git a/map-editor.html b/map-editor.html new file mode 100644 index 0000000..eb48aa1 --- /dev/null +++ b/map-editor.html @@ -0,0 +1,208 @@ + + +
+