change origin

This commit is contained in:
biglyderv 2024-11-25 14:14:20 -05:00
parent 800b09d79b
commit 46aa18b4e1
3 changed files with 11 additions and 7 deletions

View file

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