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 @@ + + +
+