Added screenshots for wiki
This commit is contained in:
+297
-62
@@ -14,16 +14,6 @@ gdjs.FunctionsCode.GDtxt_9595debugObjects2= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects3= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects4= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects5= [];
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects1= [];
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2= [];
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects3= [];
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects4= [];
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects5= [];
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1= [];
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2= [];
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects3= [];
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4= [];
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects5= [];
|
||||
gdjs.FunctionsCode.GDspr_9595doorObjects1= [];
|
||||
gdjs.FunctionsCode.GDspr_9595doorObjects2= [];
|
||||
gdjs.FunctionsCode.GDspr_9595doorObjects3= [];
|
||||
@@ -39,6 +29,31 @@ gdjs.FunctionsCode.GDbtn_9595FullscreenObjects2= [];
|
||||
gdjs.FunctionsCode.GDbtn_9595FullscreenObjects3= [];
|
||||
gdjs.FunctionsCode.GDbtn_9595FullscreenObjects4= [];
|
||||
gdjs.FunctionsCode.GDbtn_9595FullscreenObjects5= [];
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects1= [];
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2= [];
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects3= [];
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects4= [];
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects5= [];
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1= [];
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2= [];
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects3= [];
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4= [];
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects5= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects1= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects2= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects3= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects4= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects5= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects1= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects2= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects3= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects4= [];
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects5= [];
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects1= [];
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects2= [];
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects3= [];
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects4= [];
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects5= [];
|
||||
|
||||
|
||||
gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595otherPlayersObjects4Objects = Hashtable.newFrom({"spr_otherPlayers": gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4});
|
||||
@@ -57,13 +72,25 @@ gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4.length = 0;
|
||||
{gdjs.evtTools.object.createObjectOnScene(runtimeScene, gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595otherPlayersObjects4Objects, runtimeScene.getScene().getVariables().getFromIndex(3).getChild("x").getAsNumber(), runtimeScene.getScene().getVariables().getFromIndex(3).getChild("y").getAsNumber(), "");
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4[i].setColor(runtimeScene.getScene().getVariables().getFromIndex(3).getChild("color").getAsString());
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4[i].getBehavior("Animation").setAnimationName(runtimeScene.getScene().getVariables().getFromIndex(3).getChild("sprite").getAsString() + "Down");
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4[i].getBehavior("Animation").pauseAnimation();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4[i].setAnimationFrame(1);
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4[i].returnVariable(gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4[i].getVariables().getFromIndex(0)).setNumber(runtimeScene.getScene().getVariables().getFromIndex(3).getChild("id").getAsNumber());
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4[i].returnVariable(gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4[i].getVariables().getFromIndex(1)).setString(runtimeScene.getScene().getVariables().getFromIndex(3).getChild("username").getAsString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -115,7 +142,7 @@ gdjs.FunctionsCode.eventsList0(runtimeScene, asyncObjectsList);} //Subevents end
|
||||
}
|
||||
|
||||
|
||||
};gdjs.FunctionsCode.asyncCallback12663724 = function (runtimeScene, asyncObjectsList) {
|
||||
};gdjs.FunctionsCode.asyncCallback15268060 = function (runtimeScene, asyncObjectsList) {
|
||||
asyncObjectsList.restoreLocalVariablesContainers(gdjs.FunctionsCode.localVariables);
|
||||
{gdjs.evtTools.network.jsonToVariableStructure(runtimeScene.getScene().getVariables().getFromIndex(0).getAsString(), runtimeScene.getScene().getVariables().getFromIndex(1));
|
||||
}
|
||||
@@ -124,7 +151,7 @@ asyncObjectsList.restoreLocalVariablesContainers(gdjs.FunctionsCode.localVariabl
|
||||
gdjs.FunctionsCode.eventsList1(runtimeScene, asyncObjectsList);} //End of subevents
|
||||
gdjs.FunctionsCode.localVariables.length = 0;
|
||||
}
|
||||
gdjs.FunctionsCode.idToCallbackMap.set(12663724, gdjs.FunctionsCode.asyncCallback12663724);
|
||||
gdjs.FunctionsCode.idToCallbackMap.set(15268060, gdjs.FunctionsCode.asyncCallback15268060);
|
||||
gdjs.FunctionsCode.eventsList2 = function(runtimeScene) {
|
||||
|
||||
{
|
||||
@@ -134,7 +161,7 @@ gdjs.FunctionsCode.eventsList2 = function(runtimeScene) {
|
||||
{
|
||||
const asyncObjectsList = new gdjs.LongLivedObjectsList();
|
||||
asyncObjectsList.backupLocalVariablesContainers(gdjs.FunctionsCode.localVariables);
|
||||
runtimeScene.getAsyncTasksManager().addTask(gdjs.evtTools.runtimeScene.wait(0.1), (runtimeScene) => (gdjs.FunctionsCode.asyncCallback12663724(runtimeScene, asyncObjectsList)), 12663724, asyncObjectsList);
|
||||
runtimeScene.getAsyncTasksManager().addTask(gdjs.evtTools.runtimeScene.wait(0.1), (runtimeScene) => (gdjs.FunctionsCode.asyncCallback15268060(runtimeScene, asyncObjectsList)), 15268060, asyncObjectsList);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,9 +177,16 @@ let isConditionTrue_0 = false;
|
||||
isConditionTrue_0 = false;
|
||||
isConditionTrue_0 = gdjs.evtTools.runtimeScene.sceneJustBegins(runtimeScene);
|
||||
if (isConditionTrue_0) {
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_block"), gdjs.FunctionsCode.GDspr_9595blockObjects1);
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_player"), gdjs.FunctionsCode.GDspr_9595playerObjects1);
|
||||
{gdjs.evtTools.camera.setCameraZoom(runtimeScene, 3, "", 0);
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595blockObjects1.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects1[i].hide();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects1.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects1[i].setColor(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("color").getAsString());
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects1[i].getBehavior("Animation").setAnimationName(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsString() + "Down");
|
||||
}
|
||||
}
|
||||
{gdjs.evtTools.network.sendAsyncRequest(runtimeScene.getGame().getVariables().getFromIndex(1).getAsString() + "/users/" + runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsString(), "{\"x\":\"" + gdjs.evtTools.common.toString(Math.round((( gdjs.FunctionsCode.GDspr_9595playerObjects1.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects1[0].getPointX("")))) + "\",\"y\":\"" + gdjs.evtTools.common.toString(Math.round((( gdjs.FunctionsCode.GDspr_9595playerObjects1.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects1[0].getPointY("")))) + "\"}", "PATCH", "application/json", gdjs.VariablesContainer.badVariable, gdjs.VariablesContainer.badVariable);
|
||||
@@ -231,12 +265,20 @@ gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length = k;
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2 */
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").resumeAnimation();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").setAnimationName(runtimeScene.getScene().getVariables().getFromIndex(2).getChild("sprite").getAsString() + "Right");
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].clearForces();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].addForce(200, 0, 1);
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].addForce(75, 0, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -270,12 +312,20 @@ gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length = k;
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2 */
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").resumeAnimation();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").setAnimationName(runtimeScene.getScene().getVariables().getFromIndex(2).getChild("sprite").getAsString() + "Left");
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].clearForces();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].addForce(-200, 0, 1);
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].addForce(-75, 0, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -309,12 +359,20 @@ gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length = k;
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2 */
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").resumeAnimation();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").setAnimationName(runtimeScene.getScene().getVariables().getFromIndex(2).getChild("sprite").getAsString() + "Up");
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].clearForces();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].addForce(0, -200, 1);
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].addForce(0, -75, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -348,12 +406,20 @@ gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length = k;
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2 */
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").resumeAnimation();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").setAnimationName(runtimeScene.getScene().getVariables().getFromIndex(2).getChild("sprite").getAsString() + "Down");
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].clearForces();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].addForce(0, 200, 1);
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].addForce(0, 75, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -390,6 +456,14 @@ if (isConditionTrue_0) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].setPosition(runtimeScene.getScene().getVariables().getFromIndex(2).getChild("x").getAsNumber(),runtimeScene.getScene().getVariables().getFromIndex(2).getChild("y").getAsNumber());
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").pauseAnimation();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].setAnimationFrame(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -412,7 +486,19 @@ gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length = 0;
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].setColor(runtimeScene.getScene().getVariables().getFromIndex(2).getChild("color").getAsString());
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].returnVariable(gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getVariables().getFromIndex(1)).setString(runtimeScene.getScene().getVariables().getFromIndex(2).getChild("username").getAsString());
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").setAnimationName(runtimeScene.getScene().getVariables().getFromIndex(2).getChild("sprite").getAsString() + "Down");
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].getBehavior("Animation").pauseAnimation();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2[i].setAnimationFrame(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -464,14 +550,14 @@ isConditionTrue_0 = false;
|
||||
isConditionTrue_0 = gdjs.evtsExt__MQTT__isConnected.func(runtimeScene, null);
|
||||
if (isConditionTrue_0) {
|
||||
isConditionTrue_0 = false;
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(12669460);
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(15116556);
|
||||
}
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_player"), gdjs.FunctionsCode.GDspr_9595playerObjects2);
|
||||
{gdjs.evtsExt__MQTT__subscribe.func(runtimeScene, "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
}
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"join\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"x\":" + gdjs.evtTools.common.toString(Math.round((( gdjs.FunctionsCode.GDspr_9595playerObjects2.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects2[0].getPointX("")))) + ",\"y\":" + gdjs.evtTools.common.toString(Math.round((( gdjs.FunctionsCode.GDspr_9595playerObjects2.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects2[0].getPointY("")))) + ",\"color\":\"" + runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("color").getAsString() + "\"}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"join\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"username\":\"" + runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("username").getAsString() + "\",\"x\":" + gdjs.evtTools.common.toString(Math.round((( gdjs.FunctionsCode.GDspr_9595playerObjects2.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects2[0].getPointX("")))) + ",\"y\":" + gdjs.evtTools.common.toString(Math.round((( gdjs.FunctionsCode.GDspr_9595playerObjects2.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects2[0].getPointY("")))) + ",\"sprite\":\"" + runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsString() + "\"}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -504,12 +590,21 @@ for (var i = 0, k = 0, l = gdjs.FunctionsCode.GDspr_9595playerObjects2.length;i<
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2.length = k;
|
||||
if (isConditionTrue_0) {
|
||||
isConditionTrue_0 = false;
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(12673116);
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(15119700);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"move_start\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"direction\":\"right\"}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595playerObjects2 */
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"move_start\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"sprite\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsNumber()) + ",\"direction\":\"right\"}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].getBehavior("Animation").setAnimationName(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsString() + "Right");
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].getBehavior("Animation").resumeAnimation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -542,12 +637,21 @@ for (var i = 0, k = 0, l = gdjs.FunctionsCode.GDspr_9595playerObjects2.length;i<
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2.length = k;
|
||||
if (isConditionTrue_0) {
|
||||
isConditionTrue_0 = false;
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(12676988);
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(15124364);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"move_start\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"direction\":\"down\"}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595playerObjects2 */
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"move_start\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"sprite\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsNumber()) + ",\"direction\":\"down\"}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].getBehavior("Animation").setAnimationName(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsString() + "Down");
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].getBehavior("Animation").resumeAnimation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -580,12 +684,21 @@ for (var i = 0, k = 0, l = gdjs.FunctionsCode.GDspr_9595playerObjects2.length;i<
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2.length = k;
|
||||
if (isConditionTrue_0) {
|
||||
isConditionTrue_0 = false;
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(12680836);
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(15129012);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"move_start\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"direction\":\"left\"}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595playerObjects2 */
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"move_start\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"sprite\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsNumber()) + ",\"direction\":\"left\"}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].getBehavior("Animation").setAnimationName(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsString() + "Left");
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].getBehavior("Animation").resumeAnimation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -618,12 +731,21 @@ for (var i = 0, k = 0, l = gdjs.FunctionsCode.GDspr_9595playerObjects2.length;i<
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2.length = k;
|
||||
if (isConditionTrue_0) {
|
||||
isConditionTrue_0 = false;
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(12684716);
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(15134012);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"move_start\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"direction\":\"up\"}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595playerObjects2 */
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"move_start\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"sprite\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsNumber()) + ",\"direction\":\"up\"}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].getBehavior("Animation").setAnimationName(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsString() + "Up");
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].getBehavior("Animation").resumeAnimation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -646,12 +768,20 @@ for (var i = 0, k = 0, l = gdjs.FunctionsCode.GDspr_9595playerObjects2.length;i<
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2.length = k;
|
||||
if (isConditionTrue_0) {
|
||||
isConditionTrue_0 = false;
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(12687908);
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(15138324);
|
||||
}
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595playerObjects2 */
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"move_stop\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"x\":" + gdjs.evtTools.common.toString(Math.round((( gdjs.FunctionsCode.GDspr_9595playerObjects2.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects2[0].getPointX("")))) + ",\"y\":" + gdjs.evtTools.common.toString(Math.round((( gdjs.FunctionsCode.GDspr_9595playerObjects2.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects2[0].getPointY("")))) + "}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"move_stop\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + ",\"sprite\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("sprite").getAsNumber()) + ",\"x\":" + gdjs.evtTools.common.toString(Math.round((( gdjs.FunctionsCode.GDspr_9595playerObjects2.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects2[0].getPointX("")))) + ",\"y\":" + gdjs.evtTools.common.toString(Math.round((( gdjs.FunctionsCode.GDspr_9595playerObjects2.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects2[0].getPointY("")))) + "}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].getBehavior("Animation").pauseAnimation();
|
||||
}
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].setAnimationFrame(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -680,29 +810,75 @@ gdjs.FunctionsCode.eventsList7(runtimeScene);} //End of subevents
|
||||
}
|
||||
|
||||
|
||||
};gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595playerObjects1Objects = Hashtable.newFrom({"spr_player": gdjs.FunctionsCode.GDspr_9595playerObjects1});
|
||||
gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595doorObjects1Objects = Hashtable.newFrom({"spr_door": gdjs.FunctionsCode.GDspr_9595doorObjects1});
|
||||
};gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595playerObjects2Objects = Hashtable.newFrom({"spr_player": gdjs.FunctionsCode.GDspr_9595playerObjects2});
|
||||
gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595doorObjects2Objects = Hashtable.newFrom({"spr_door": gdjs.FunctionsCode.GDspr_9595doorObjects2});
|
||||
gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595playerObjects2Objects = Hashtable.newFrom({"spr_player": gdjs.FunctionsCode.GDspr_9595playerObjects2});
|
||||
gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595blockObjects2Objects = Hashtable.newFrom({"spr_block": gdjs.FunctionsCode.GDspr_9595blockObjects2});
|
||||
gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595blockObjects2Objects = Hashtable.newFrom({"spr_block": gdjs.FunctionsCode.GDspr_9595blockObjects2});
|
||||
gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595otherPlayersObjects1Objects = Hashtable.newFrom({"spr_otherPlayers": gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1});
|
||||
gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595blockObjects1Objects = Hashtable.newFrom({"spr_block": gdjs.FunctionsCode.GDspr_9595blockObjects1});
|
||||
gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595blockObjects1Objects = Hashtable.newFrom({"spr_block": gdjs.FunctionsCode.GDspr_9595blockObjects1});
|
||||
gdjs.FunctionsCode.eventsList9 = function(runtimeScene) {
|
||||
|
||||
{
|
||||
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_door"), gdjs.FunctionsCode.GDspr_9595doorObjects1);
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_player"), gdjs.FunctionsCode.GDspr_9595playerObjects1);
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_door"), gdjs.FunctionsCode.GDspr_9595doorObjects2);
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_player"), gdjs.FunctionsCode.GDspr_9595playerObjects2);
|
||||
|
||||
let isConditionTrue_0 = false;
|
||||
isConditionTrue_0 = false;
|
||||
isConditionTrue_0 = gdjs.evtTools.object.hitBoxesCollisionTest(gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595playerObjects1Objects, gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595doorObjects1Objects, false, runtimeScene, false);
|
||||
isConditionTrue_0 = gdjs.evtTools.object.hitBoxesCollisionTest(gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595playerObjects2Objects, gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595doorObjects2Objects, false, runtimeScene, false);
|
||||
if (isConditionTrue_0) {
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595doorObjects1 */
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595doorObjects2 */
|
||||
{runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("last_room").setString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("room").getAsString());
|
||||
}
|
||||
{runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("room").setString(((gdjs.FunctionsCode.GDspr_9595doorObjects1.length === 0 ) ? gdjs.VariablesContainer.badVariablesContainer : gdjs.FunctionsCode.GDspr_9595doorObjects1[0].getVariables()).getFromIndex(0).getAsString());
|
||||
{runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("room").setString(((gdjs.FunctionsCode.GDspr_9595doorObjects2.length === 0 ) ? gdjs.VariablesContainer.badVariablesContainer : gdjs.FunctionsCode.GDspr_9595doorObjects2[0].getVariables()).getFromIndex(0).getAsString());
|
||||
}
|
||||
{gdjs.evtTools.network.sendAsyncRequest(runtimeScene.getGame().getVariables().getFromIndex(1).getAsString() + "/users/" + runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsString(), "{\"room\":\"" + runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("room").getAsString() + "\",\"last_room\":\"" + runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("last_room").getAsString() + "\"}", "PATCH", "application/json", gdjs.VariablesContainer.badVariable, gdjs.VariablesContainer.badVariable);
|
||||
}
|
||||
{gdjs.evtsExt__MQTT__publish.func(runtimeScene, "{\"type\":\"leave\",\"player_id\":" + gdjs.evtTools.common.toString(runtimeScene.getGame().getVariables().getFromIndex(0).getChild(0).getChild("id").getAsNumber()) + "}", "/game/rooms/" + gdjs.evtTools.runtimeScene.getSceneName(runtimeScene), 0, false, null);
|
||||
}
|
||||
{gdjs.evtTools.runtimeScene.replaceScene(runtimeScene, ((gdjs.FunctionsCode.GDspr_9595doorObjects1.length === 0 ) ? gdjs.VariablesContainer.badVariablesContainer : gdjs.FunctionsCode.GDspr_9595doorObjects1[0].getVariables()).getFromIndex(0).getAsString(), false);
|
||||
{gdjs.evtTools.runtimeScene.replaceScene(runtimeScene, ((gdjs.FunctionsCode.GDspr_9595doorObjects2.length === 0 ) ? gdjs.VariablesContainer.badVariablesContainer : gdjs.FunctionsCode.GDspr_9595doorObjects2[0].getVariables()).getFromIndex(0).getAsString(), false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_block"), gdjs.FunctionsCode.GDspr_9595blockObjects2);
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_player"), gdjs.FunctionsCode.GDspr_9595playerObjects2);
|
||||
|
||||
let isConditionTrue_0 = false;
|
||||
isConditionTrue_0 = false;
|
||||
isConditionTrue_0 = gdjs.evtTools.object.hitBoxesCollisionTest(gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595playerObjects2Objects, gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595blockObjects2Objects, false, runtimeScene, false);
|
||||
if (isConditionTrue_0) {
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595blockObjects2 */
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595playerObjects2 */
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595playerObjects2.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2[i].separateFromObjectsList(gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595blockObjects2Objects, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_block"), gdjs.FunctionsCode.GDspr_9595blockObjects1);
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_otherPlayers"), gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1);
|
||||
|
||||
let isConditionTrue_0 = false;
|
||||
isConditionTrue_0 = false;
|
||||
isConditionTrue_0 = gdjs.evtTools.object.hitBoxesCollisionTest(gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595otherPlayersObjects1Objects, gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595blockObjects1Objects, false, runtimeScene, false);
|
||||
if (isConditionTrue_0) {
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595blockObjects1 */
|
||||
/* Reuse gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1 */
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1[i].separateFromObjectsList(gdjs.FunctionsCode.mapOfGDgdjs_9546FunctionsCode_9546GDspr_95959595blockObjects1Objects, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -756,7 +932,7 @@ for (var i = 0, k = 0, l = gdjs.FunctionsCode.GDspr_9595playerObjects1.length;i<
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects1.length = k;
|
||||
if (isConditionTrue_0) {
|
||||
isConditionTrue_0 = false;
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(12726196);
|
||||
{isConditionTrue_0 = runtimeScene.getOnceTriggers().triggerOnce(15144716);
|
||||
}
|
||||
}
|
||||
if (isConditionTrue_0) {
|
||||
@@ -773,6 +949,28 @@ if (isConditionTrue_0) {
|
||||
{
|
||||
|
||||
|
||||
let isConditionTrue_0 = false;
|
||||
{
|
||||
gdjs.copyArray(runtimeScene.getObjects("spr_player"), gdjs.FunctionsCode.GDspr_9595playerObjects1);
|
||||
gdjs.copyArray(runtimeScene.getObjects("txt_playerName"), gdjs.FunctionsCode.GDtxt_9595playerNameObjects1);
|
||||
{gdjs.evtTools.camera.setCameraX(runtimeScene, (( gdjs.FunctionsCode.GDspr_9595playerObjects1.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects1[0].getCenterXInScene()), "", 0);
|
||||
}
|
||||
{gdjs.evtTools.camera.setCameraY(runtimeScene, (( gdjs.FunctionsCode.GDspr_9595playerObjects1.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects1[0].getCenterYInScene()), "", 0);
|
||||
}
|
||||
{for(var i = 0, len = gdjs.FunctionsCode.GDtxt_9595playerNameObjects1.length ;i < len;++i) {
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects1[i].setCenterPositionInScene((( gdjs.FunctionsCode.GDspr_9595playerObjects1.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects1[0].getCenterXInScene()),(( gdjs.FunctionsCode.GDspr_9595playerObjects1.length === 0 ) ? 0 :gdjs.FunctionsCode.GDspr_9595playerObjects1[0].getCenterYInScene()) - 24);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
};gdjs.FunctionsCode.eventsList13 = function(runtimeScene) {
|
||||
|
||||
{
|
||||
|
||||
|
||||
gdjs.FunctionsCode.eventsList3(runtimeScene);
|
||||
}
|
||||
|
||||
@@ -805,6 +1003,13 @@ gdjs.FunctionsCode.eventsList11(runtimeScene);
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
|
||||
|
||||
gdjs.FunctionsCode.eventsList12(runtimeScene);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
gdjs.FunctionsCode.func = function(runtimeScene) {
|
||||
@@ -815,16 +1020,6 @@ gdjs.FunctionsCode.GDtxt_9595debugObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595doorObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595doorObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595doorObjects3.length = 0;
|
||||
@@ -840,23 +1035,38 @@ gdjs.FunctionsCode.GDbtn_9595FullscreenObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDbtn_9595FullscreenObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDbtn_9595FullscreenObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDbtn_9595FullscreenObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects5.length = 0;
|
||||
|
||||
gdjs.FunctionsCode.eventsList12(runtimeScene);
|
||||
gdjs.FunctionsCode.eventsList13(runtimeScene);
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595debugObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595doorObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595doorObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595doorObjects3.length = 0;
|
||||
@@ -872,6 +1082,31 @@ gdjs.FunctionsCode.GDbtn_9595FullscreenObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDbtn_9595FullscreenObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDbtn_9595FullscreenObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDbtn_9595FullscreenObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595playerObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595otherPlayersObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595playerNameObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDtxt_9595otherPlayerNameObjects5.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects1.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects2.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects3.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects4.length = 0;
|
||||
gdjs.FunctionsCode.GDspr_9595blockObjects5.length = 0;
|
||||
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user