mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
35 lines
No EOL
841 B
JavaScript
Executable file
35 lines
No EOL
841 B
JavaScript
Executable file
GLOBALS = { context: "Client" };
|
|
|
|
requirejs.config({
|
|
baseUrl: 'app',
|
|
deps: ['Lib/Utilities/Extensions'],
|
|
waitSeconds: 0
|
|
});
|
|
|
|
var inspector = {};
|
|
|
|
requirejs([
|
|
"Game/Client/Networker",
|
|
"Lib/Vendor/SocketIO",
|
|
"Game/Config/Settings",
|
|
"Lib/Utilities/Exception",
|
|
"Lib/Vendor/Pixi"
|
|
],
|
|
|
|
function (Networker, SocketIO, Settings, Exception, PIXI) {
|
|
|
|
var options = {
|
|
"reconnect": false,
|
|
"reconnection delay": 500,
|
|
"max reconnection attempts": 10,
|
|
"transports": [
|
|
"websocket",
|
|
"flashsocket"
|
|
]
|
|
};
|
|
var socket = SocketIO.connect("/", options);
|
|
var networker = new Networker(socket);
|
|
inspector.networker = networker;
|
|
inspector.settings = Settings;
|
|
inspector.resetLevel = function() { networker.sendGameCommand("resetLevel"); }
|
|
}); |