change origin
This commit is contained in:
parent
d4fdcd574f
commit
a3a0e88540
3 changed files with 11 additions and 7 deletions
|
@ -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"
|
||||
|
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.6 KiB |
|
@ -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"
|
||||
|
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue