From 46aa18b4e1244ecc24a18dbbda0be4b7d340d891 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 25 Nov 2024 14:14:20 -0500 Subject: [PATCH] change origin --- static/assets/map.svg | 9 ++++++--- static/assets/player.svg | 6 +++--- static/js/index.js | 3 ++- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/static/assets/map.svg b/static/assets/map.svg index f5bfa49..9f16911 100644 --- a/static/assets/map.svg +++ b/static/assets/map.svg @@ -9,6 +9,9 @@ id="svg1" inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)" sodipodi:docname="map.svg" + inkscape:export-filename="../../../../map.png" + inkscape:export-xdpi="819.20001" + inkscape:export-ydpi="819.20001" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:xlink="http://www.w3.org/1999/xlink" @@ -24,9 +27,9 @@ inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" - inkscape:zoom="16.448685" - inkscape:cx="73.562112" - inkscape:cy="79.276855" + inkscape:zoom="32.89737" + inkscape:cx="46.47788" + inkscape:cy="50.642347" inkscape:window-width="1860" inkscape:window-height="1004" inkscape:window-x="30" diff --git a/static/assets/player.svg b/static/assets/player.svg index dfda744..f6ce0cc 100644 --- a/static/assets/player.svg +++ b/static/assets/player.svg @@ -23,9 +23,9 @@ inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" - inkscape:zoom="2.0560856" - inkscape:cx="61.281496" - inkscape:cy="49.60883" + inkscape:zoom="5.8154883" + inkscape:cx="61.473772" + inkscape:cy="49.522927" inkscape:window-width="1860" inkscape:window-height="1004" inkscape:window-x="30" diff --git a/static/js/index.js b/static/js/index.js index f10fc92..7bb58e8 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -7,6 +7,7 @@ const assets = [ 'assets/head.svg', 'assets/map.svg' ]; +const origin = 'https://ub.zenoverse.net/' class Game extends GameBasic { constructor() { @@ -84,7 +85,7 @@ class Game extends GameBasic { let { player } = this; if (player.health <= 0) { - this.ws = new WebSocket(window.location.href); + this.ws = new WebSocket(origin); this.player = new Player(false, true); this.entities.push(this.player); } else {