mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-26 20:51:38 +00:00
fix js
This commit is contained in:
parent
203916bfae
commit
70b4d51943
3 changed files with 7 additions and 5 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
-lib heaps
|
-lib heaps
|
||||||
-lib stb_ogg_sound
|
-lib stb_ogg_sound
|
||||||
-lib zip
|
-lib zip
|
||||||
|
-lib datachannel
|
||||||
|
-lib colyseus-websocket
|
||||||
-lib uglifyjs
|
-lib uglifyjs
|
||||||
--js marblegame.js
|
--js marblegame.js
|
||||||
-D windowSize=1280x720
|
-D windowSize=1280x720
|
||||||
|
|
|
||||||
|
|
@ -2083,7 +2083,7 @@ class MarbleWorld extends Scheduler {
|
||||||
#if js
|
#if js
|
||||||
lock = true;
|
lock = true;
|
||||||
|
|
||||||
var loadPerTick = 500; // Stack limits???
|
var loadPerTick = 100; // Stack limits???
|
||||||
var loadedFuncs = 0;
|
var loadedFuncs = 0;
|
||||||
var func = this.resourceLoadFuncs.shift();
|
var func = this.resourceLoadFuncs.shift();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,11 @@ typedef RemoteServerInfo = {
|
||||||
}
|
}
|
||||||
|
|
||||||
class MasterServerClient {
|
class MasterServerClient {
|
||||||
// #if js
|
#if js
|
||||||
// static var serverIp = "wss://mbomaster.randomityguy.me:8443";
|
static var serverIp = "wss://mbpmaster.randomityguy.me:8443";
|
||||||
// #else
|
#else
|
||||||
static var serverIp = "ws://89.58.58.191:8084";
|
static var serverIp = "ws://89.58.58.191:8084";
|
||||||
// #end
|
#end
|
||||||
public static var instance:MasterServerClient;
|
public static var instance:MasterServerClient;
|
||||||
|
|
||||||
var ws:WebSocket;
|
var ws:WebSocket;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue