set to local addr
Some checks failed
Create and publish a Docker image 🚀 / build-and-push-image (push) Failing after 31s

This commit is contained in:
Smile Rex
2026-01-22 09:41:05 +03:00
parent 24ed3afbaf
commit 480e9d41f8

View File

@@ -3,6 +3,9 @@ import { RemotePlayer } from "../entities/RemotePlayer";
import { TouchInput } from "../input/TouchInput";
import { GameSocket } from "../net/Socket";
let localAddr: string = "ws://localhost:8080/ws";
let remoteAddr: string = "wss://tma-api.quizer.space/ws";
type ServerPlayerState = {
x: number;
y: number;
@@ -16,7 +19,7 @@ export class GameScene extends Phaser.Scene {
create() {
this.inputCtrl = new TouchInput(this);
this.socket = new GameSocket("wss://tma-api.quizer.space/ws");
this.socket = new GameSocket(localAddr);
this.socket.onState = (state) => {
this.syncPlayers(state.players);