change origin
This commit is contained in:
parent
800b09d79b
commit
46aa18b4e1
3 changed files with 11 additions and 7 deletions
|
@ -9,6 +9,9 @@
|
||||||
id="svg1"
|
id="svg1"
|
||||||
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
|
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
|
||||||
sodipodi:docname="map.svg"
|
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:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
@ -24,9 +27,9 @@
|
||||||
inkscape:pagecheckerboard="0"
|
inkscape:pagecheckerboard="0"
|
||||||
inkscape:deskcolor="#d1d1d1"
|
inkscape:deskcolor="#d1d1d1"
|
||||||
inkscape:document-units="px"
|
inkscape:document-units="px"
|
||||||
inkscape:zoom="16.448685"
|
inkscape:zoom="32.89737"
|
||||||
inkscape:cx="73.562112"
|
inkscape:cx="46.47788"
|
||||||
inkscape:cy="79.276855"
|
inkscape:cy="50.642347"
|
||||||
inkscape:window-width="1860"
|
inkscape:window-width="1860"
|
||||||
inkscape:window-height="1004"
|
inkscape:window-height="1004"
|
||||||
inkscape:window-x="30"
|
inkscape:window-x="30"
|
||||||
|
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.6 KiB |
|
@ -23,9 +23,9 @@
|
||||||
inkscape:pagecheckerboard="0"
|
inkscape:pagecheckerboard="0"
|
||||||
inkscape:deskcolor="#d1d1d1"
|
inkscape:deskcolor="#d1d1d1"
|
||||||
inkscape:document-units="px"
|
inkscape:document-units="px"
|
||||||
inkscape:zoom="2.0560856"
|
inkscape:zoom="5.8154883"
|
||||||
inkscape:cx="61.281496"
|
inkscape:cx="61.473772"
|
||||||
inkscape:cy="49.60883"
|
inkscape:cy="49.522927"
|
||||||
inkscape:window-width="1860"
|
inkscape:window-width="1860"
|
||||||
inkscape:window-height="1004"
|
inkscape:window-height="1004"
|
||||||
inkscape:window-x="30"
|
inkscape:window-x="30"
|
||||||
|
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
@ -7,6 +7,7 @@ const assets = [
|
||||||
'assets/head.svg',
|
'assets/head.svg',
|
||||||
'assets/map.svg'
|
'assets/map.svg'
|
||||||
];
|
];
|
||||||
|
const origin = 'https://ub.zenoverse.net/'
|
||||||
|
|
||||||
class Game extends GameBasic {
|
class Game extends GameBasic {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -84,7 +85,7 @@ class Game extends GameBasic {
|
||||||
let { player } = this;
|
let { player } = this;
|
||||||
|
|
||||||
if (player.health <= 0) {
|
if (player.health <= 0) {
|
||||||
this.ws = new WebSocket(window.location.href);
|
this.ws = new WebSocket(origin);
|
||||||
this.player = new Player(false, true);
|
this.player = new Player(false, true);
|
||||||
this.entities.push(this.player);
|
this.entities.push(this.player);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue