diff --git a/examples/load-testing/assets/Water.glb b/examples/load-testing/assets/Water.glb new file mode 100644 index 000000000..9949b23ac Binary files /dev/null and b/examples/load-testing/assets/Water.glb differ diff --git a/examples/load-testing/load-testing.json b/examples/load-testing/load-testing.json index 78c312a0c..5cda70d39 100644 --- a/examples/load-testing/load-testing.json +++ b/examples/load-testing/load-testing.json @@ -898,6 +898,17 @@ "name": "Sprite4", "smoothed": true, "userAdded": true + }, + { + "file": "assets/Water.glb", + "kind": "model3D", + "metadata": "", + "name": "Water.glb", + "userAdded": false, + "origin": { + "identifier": "https://asset-resources.gdevelop.io/public-resources/3D Medieval Hexagon Pack/6d1a9b91aaf02d6b766ec675ae9ddefed0e4f62ae19083d28f25a6d5130346ef_Water.glb", + "name": "Water.glb" + } } ], "resourceFolders": [] @@ -936,9 +947,6 @@ { "name": "CreateSprites_Button" }, - { - "name": "CreateSomething_Button" - }, { "name": "CreateTiledSprites_Button" }, @@ -959,8 +967,8 @@ "name": "CreateParticles_Button", "persistentUuid": "fb4b5f7f-3845-457e-9f3c-00ecc710d4d4", "width": 320, - "x": 1184, - "y": 320, + "x": 768, + "y": 288, "zOrder": 2, "numberProperties": [], "stringProperties": [], @@ -975,8 +983,8 @@ "name": "CreateTiledSprites_Button", "persistentUuid": "ab279aee-3e88-4f7c-905c-eeba2935ddbb", "width": 320, - "x": 768, - "y": 320, + "x": 416, + "y": 288, "zOrder": 4, "numberProperties": [], "stringProperties": [], @@ -991,8 +999,8 @@ "name": "CreateSprites_Button", "persistentUuid": "dcfb3b7c-cfc7-4a50-9f31-2183b1149c42", "width": 320, - "x": 352, - "y": 320, + "x": 64, + "y": 288, "zOrder": 5, "numberProperties": [], "stringProperties": [], @@ -1088,6 +1096,22 @@ "numberProperties": [], "stringProperties": [], "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 128, + "layer": "", + "name": "CreateLowPoly3D", + "persistentUuid": "8e49a71f-2e36-45ce-9f45-bd6a6dca140f", + "width": 320, + "x": 1312, + "y": 288, + "zOrder": 12, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] } ], "objects": [ @@ -1221,7 +1245,7 @@ }, { "assetStoreId": "a48315b9a9c655af87118d7bb8f6be03b4dbb14e066387849b2d2d4c3600573c", - "name": "CreateSomething_Button", + "name": "CreateLowPoly3D", "tags": "", "type": "PanelSpriteButton::PanelSpriteButton", "variables": [], @@ -1261,7 +1285,7 @@ "italic": false, "smoothed": true, "underlined": false, - "string": "Unused\nButton", + "string": "Create \nsimple 3D", "font": "CantoraOne-Regular.ttf", "textAlignment": "center", "characterSize": 40, @@ -1853,6 +1877,16 @@ "CreateObjectButtons" ] }, + { + "type": { + "value": "ModVarGlobal" + }, + "parameters": [ + "QuantityToCreate", + "=", + "ObjectCount_Slider.Value()" + ] + }, { "type": { "value": "ModVarGlobal" @@ -1919,7 +1953,7 @@ }, "parameters": [ "", - "\"LoadTest\"", + "\"LoadTest_2D\"", "" ] } @@ -2010,6 +2044,142 @@ ] } ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" + }, + "parameters": [ + "CreateLowPoly3D", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "ModVarGlobal" + }, + "parameters": [ + "QuantityToCreate", + "=", + "ObjectCount_Slider.Value()" + ] + }, + { + "type": { + "value": "ModVarGlobal" + }, + "parameters": [ + "SceneStartTime", + "=", + "Time(\"timestamp\")" + ] + }, + { + "type": { + "value": "ModVarGlobalTxt" + }, + "parameters": [ + "ObjectToTest", + "=", + "\"Simple3D\"" + ] + }, + { + "type": { + "value": "ModVarGlobal" + }, + "parameters": [ + "SceneEndTime", + "=", + "Time(\"timestamp\")" + ] + }, + { + "type": { + "value": "ModVarGlobal" + }, + "parameters": [ + "ChangeScenesRemaining", + "=", + "SceneChange_Slider.Value()" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::Activate" + }, + "parameters": [ + "CreateObjectButtons", + "", + "" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::Activate" + }, + "parameters": [ + "ChangeScenes_Button", + "", + "" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::Activate" + }, + "parameters": [ + "CreateLowPoly3D", + "", + "" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::SetOpacity" + }, + "parameters": [ + "CreateObjectButtons", + "=", + "128" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::SetOpacity" + }, + "parameters": [ + "ChangeScenes_Button", + "=", + "128" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::SetOpacity" + }, + "parameters": [ + "CreateLowPoly3D", + "=", + "128" + ] + }, + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"LoadTest_3D\"", + "" + ] + } + ] } ], "parameters": [] @@ -2049,8 +2219,4761 @@ { "b": 0, "disableInputWhenNotFocused": true, - "mangledName": "LoadTest", - "name": "LoadTest", + "mangledName": "LoadTest_953D", + "name": "LoadTest_3D", + "r": 0, + "standardSortMethod": true, + "stopSoundsOnStartup": true, + "title": "", + "v": 0, + "uiSettings": { + "grid": true, + "gridType": "rectangular", + "gridWidth": 32, + "gridHeight": 32, + "gridOffsetX": 0, + "gridOffsetY": 0, + "gridColor": 10401023, + "gridAlpha": 0.2, + "snap": true, + "zoomFactor": 0.43034038022076543, + "windowMask": false + }, + "objectsGroups": [ + { + "name": "CountedObjects", + "objects": [ + { + "name": "Sprite" + }, + { + "name": "TiledSprite" + }, + { + "name": "ParticleEmitter" + }, + { + "name": "LowPoly_Model" + } + ] + }, + { + "name": "NonParticleObjects", + "objects": [ + { + "name": "EnablePhysics_Text" + }, + { + "name": "CheckPointInside_Text" + }, + { + "name": "SeparateTwoObjects_Text" + }, + { + "name": "ForEach_Text" + }, + { + "name": "EnablePhysics_Toggle" + }, + { + "name": "SeparateObjects_Toggle" + }, + { + "name": "CollisionCheck_Toggle" + }, + { + "name": "PhysicsCollisionCheck_Text" + }, + { + "name": "DisablePhysicsSleep_Text" + }, + { + "name": "CollisionCheck_Text" + }, + { + "name": "PhysicsCollisionCheck_Toggle" + }, + { + "name": "ForEach_Toggle" + }, + { + "name": "CheckPointInside_Toggle" + }, + { + "name": "PhysicsSleep_Toggle" + } + ] + } + ], + "variables": [], + "instances": [ + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "UI", + "name": "FPS_Text", + "persistentUuid": "18fd365f-8620-46ef-9291-9b1d180d285d", + "width": 0, + "x": 64, + "y": 32, + "zOrder": 1, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "UI", + "name": "ObjectCount_Text", + "persistentUuid": "9fe7bcfd-2388-47d8-9fe8-d878313889a8", + "width": 0, + "x": 64, + "y": 96, + "zOrder": 2, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 96, + "layer": "UI", + "name": "GoBack_Button", + "persistentUuid": "207a315d-46eb-4b38-8935-b64f358727e1", + "width": 320, + "x": 64, + "y": 896, + "zOrder": 3, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "UI", + "name": "TimeToDisplay_Text", + "persistentUuid": "485e4441-1d03-43d8-a9d2-4eb9aa4191ce", + "width": 0, + "x": 64, + "y": 160, + "zOrder": 4, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 64, + "layer": "", + "name": "EnablePhysics_Toggle", + "persistentUuid": "2e2a8ecf-d315-465c-bfa2-5a8883192239", + "width": 64, + "x": 1312, + "y": 1117, + "zOrder": 6, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "SeparateTwoObjects_Text", + "persistentUuid": "cc7505a2-abc9-4808-852a-1b8a29d4439a", + "width": 0, + "x": 1408, + "y": -120, + "zOrder": 7, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "EnablePhysics_Text", + "persistentUuid": "e3573174-0fb9-444b-959b-acc15e9cd1de", + "width": 0, + "x": 1408, + "y": 1125, + "zOrder": 8, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 64, + "layer": "", + "name": "SeparateObjects_Toggle", + "persistentUuid": "31bbd0cd-2333-4ccd-bdd9-a076ad18d5cc", + "width": 64, + "x": 1312, + "y": -128, + "zOrder": 9, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 64, + "layer": "", + "name": "CollisionCheck_Toggle", + "persistentUuid": "d37f515b-69cc-486f-818d-551ee39f33cb", + "width": 64, + "x": 1312, + "y": -224, + "zOrder": 10, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "CollisionCheck_Text", + "persistentUuid": "4997de9a-5302-445a-8ddf-5fb042766bfb", + "width": 0, + "x": 1408, + "y": -218, + "zOrder": 11, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "PhysicsCollisionCheck_Text", + "persistentUuid": "f70483cc-7e22-492d-89ab-6846fca5282e", + "width": 0, + "x": 1408, + "y": 1221, + "zOrder": 12, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 64, + "layer": "", + "name": "PhysicsCollisionCheck_Toggle", + "persistentUuid": "c2bd479d-0c13-4234-a773-268470192fa0", + "width": 64, + "x": 1312, + "y": 1215, + "zOrder": 13, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "CheckPointInside_Text", + "persistentUuid": "aa973d78-86ba-44bd-9dd7-ece7693aaba1", + "width": 0, + "x": 1408, + "y": -314, + "zOrder": 14, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 64, + "layer": "", + "name": "CheckPointInside_Toggle", + "persistentUuid": "52394811-cfa5-4388-a88b-331d077f213c", + "width": 64, + "x": 1312, + "y": -320, + "zOrder": 15, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 64, + "layer": "", + "name": "ChangeColors_Toggle", + "persistentUuid": "5f178389-99f5-41eb-bbbf-cc1be003ffc2", + "width": 64, + "x": -448, + "y": 448, + "zOrder": 16, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "ChangeColors_Text", + "persistentUuid": "4f9e796d-e399-411e-b5b2-0eee37cbc4db", + "width": 0, + "x": -352, + "y": 458, + "zOrder": 17, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "ForEach_Text", + "persistentUuid": "061aa782-ade3-4c73-8037-521af576f4d6", + "width": 0, + "x": -352, + "y": 554, + "zOrder": 18, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 64, + "layer": "", + "name": "ForEach_Toggle", + "persistentUuid": "a460d154-1b8c-4771-a079-d29427e47778", + "width": 64, + "x": -448, + "y": 544, + "zOrder": 19, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 64, + "layer": "", + "name": "PhysicsSleep_Toggle", + "persistentUuid": "6e2020ec-e3e8-48f9-a255-742c8d8f7194", + "width": 64, + "x": 1312, + "y": 1312, + "zOrder": 20, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "DisablePhysicsSleep_Text", + "persistentUuid": "7eccc01d-b645-4484-8c7e-67a9c320f535", + "width": 0, + "x": 1408, + "y": 1317, + "zOrder": 21, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 96, + "layer": "", + "name": "DeleteObjects_Button", + "persistentUuid": "c233bb92-0958-4809-9466-6e599335758e", + "width": 320, + "x": 768, + "y": 896, + "zOrder": 22, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "TimeToDelete_Text", + "persistentUuid": "10d3e092-4d8f-4652-8d8c-03f00c84682f", + "width": 0, + "x": 672, + "y": 1010, + "zOrder": 23, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "MoveParticles_Text", + "persistentUuid": "3fc34637-15e4-4662-8a95-b52dcf4d5ba9", + "width": 0, + "x": -352, + "y": 360, + "zOrder": 24, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": true, + "depth": 32, + "height": 64, + "layer": "", + "name": "MoveParticles_Toggle", + "persistentUuid": "ee6b7041-dd63-4f74-9360-8e9262bdc945", + "width": 64, + "x": -448, + "y": 352, + "zOrder": 25, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "LowPoly_Model", + "persistentUuid": "a00556eb-3ea5-4326-98ff-c7b4f2f00f1e", + "width": 0, + "x": 960, + "y": 512, + "zOrder": 26, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], + "objects": [ + { + "adaptCollisionMaskAutomatically": false, + "assetStoreId": "", + "name": "Sprite", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Physics2", + "type": "Physics2::Physics2Behavior", + "bodyType": "Dynamic", + "bullet": false, + "fixedRotation": false, + "canSleep": true, + "shape": "Box", + "shapeDimensionA": 0, + "shapeDimensionB": 0, + "shapeOffsetX": 0, + "shapeOffsetY": 0, + "polygonOrigin": "Center", + "vertices": [], + "density": 1, + "friction": 0, + "restitution": 0, + "linearDamping": 10, + "angularDamping": 10, + "gravityScale": 0, + "layers": 1, + "masks": 1 + } + ], + "animations": [ + { + "name": "Sprite", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "metadata": "{\"pskl\":{}}", + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Sprite4", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "FPS_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [ + { + "name": "FPSDisplayer", + "type": "FPS::FPSDisplayer", + "prefix": "FPS: ", + "DecimalDigits": 1 + } + ], + "string": "FPS: ???", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "ObjectCount_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Objects: ???", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "TimeToDisplay_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Time to display: ??? seconds", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "TimeToDelete_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Time to delete: ??? seconds", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "EnablePhysics_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Enable physics", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "CheckPointInside_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Check if point inside", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "SeparateTwoObjects_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Separate objects", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "CollisionCheck_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Check collisions", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "PhysicsCollisionCheck_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Show physics collisions", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "DisablePhysicsSleep_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Disable physics sleeping", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "ChangeColors_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Change colors", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "MoveParticles_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Move Particles", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "ForEach_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [ + { + "effectType": "Outline", + "name": "Effect", + "doubleParameters": { + "padding": 0, + "thickness": 2 + }, + "stringParameters": { + "color": "0;0;0" + }, + "booleanParameters": {} + } + ], + "behaviors": [], + "string": "Rotate (For Each)", + "font": "", + "textAlignment": "left", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "height": 6, + "name": "TiledSprite", + "tags": "", + "texture": "Sprite", + "type": "TiledSpriteObject::TiledSprite", + "width": 6, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Physics2", + "type": "Physics2::Physics2Behavior", + "bodyType": "Dynamic", + "bullet": false, + "fixedRotation": false, + "canSleep": true, + "shape": "Box", + "shapeDimensionA": 0, + "shapeDimensionB": 0, + "shapeOffsetX": 0, + "shapeOffsetY": 0, + "polygonOrigin": "Center", + "vertices": [], + "density": 1, + "friction": 0.3, + "restitution": 0.1, + "linearDamping": 10, + "angularDamping": 10, + "gravityScale": 0, + "layers": 1, + "masks": 1 + } + ] + }, + { + "additive": false, + "assetStoreId": "", + "destroyWhenNoParticles": true, + "emitterAngleA": 0, + "emitterAngleB": 360, + "emitterForceMax": 500, + "emitterForceMin": 500, + "flow": 18000, + "jumpForwardInTimeOnCreation": 0, + "maxParticleNb": 1000000, + "name": "ParticleEmitter", + "particleAlpha1": 255, + "particleAlpha2": 255, + "particleAlphaRandomness1": 0, + "particleAlphaRandomness2": 0, + "particleAngle1": 0, + "particleAngle2": 0, + "particleAngleRandomness1": 0, + "particleAngleRandomness2": 0, + "particleBlue1": 27, + "particleBlue2": 27, + "particleGravityX": 0, + "particleGravityY": 0, + "particleGreen1": 2, + "particleGreen2": 2, + "particleLifeTimeMax": 1, + "particleLifeTimeMin": 1, + "particleRed1": 208, + "particleRed2": 208, + "particleSize1": 100, + "particleSize2": 100, + "particleSizeRandomness1": 0, + "particleSizeRandomness2": 0, + "rendererParam1": 5, + "rendererParam2": 1, + "rendererType": "Point", + "tags": "", + "tank": -1, + "textureParticleName": "", + "type": "ParticleSystem::ParticleEmitter", + "zoneRadius": 3, + "variables": [], + "effects": [], + "behaviors": [] + }, + { + "assetStoreId": "9cf9ca8be6e98fc23e76b6770d3f4d094dea09f30a49f38ef9a9d2e97c2460be", + "name": "GoBack_Button", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 3, + "BottomPadding": 32, + "TopPadding": 32, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 16, + "height": 69, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Grey Button With Shadow_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 192 + }, + "Idle": { + "bottomMargin": 16, + "height": 69, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Grey Button With Shadow_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 192 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Go back", + "font": "CantoraOne-Regular.ttf", + "textAlignment": "center", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 69, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Grey Button With Shadow_Pressed.png", + "tiled": true, + "topMargin": 16, + "width": 192 + } + } + }, + { + "assetStoreId": "9cf9ca8be6e98fc23e76b6770d3f4d094dea09f30a49f38ef9a9d2e97c2460be", + "name": "DeleteObjects_Button", + "tags": "", + "type": "PanelSpriteButton::PanelSpriteButton", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "LeftPadding": 16, + "RightPadding": 16, + "PressedLabelOffsetY": 3, + "BottomPadding": 32, + "TopPadding": 32, + "HoveredFadeOutDuration": 0.25 + }, + "childrenContent": { + "Hovered": { + "bottomMargin": 16, + "height": 69, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Grey Button With Shadow_Hovered.png", + "tiled": true, + "topMargin": 16, + "width": 192 + }, + "Idle": { + "bottomMargin": 16, + "height": 69, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Grey Button With Shadow_Idle.png", + "tiled": true, + "topMargin": 16, + "width": 192 + }, + "Label": { + "bold": false, + "italic": false, + "smoothed": true, + "underlined": false, + "string": "Delete Objects", + "font": "CantoraOne-Regular.ttf", + "textAlignment": "center", + "characterSize": 40, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + "Pressed": { + "bottomMargin": 16, + "height": 69, + "leftMargin": 16, + "rightMargin": 16, + "texture": "Grey Button With Shadow_Pressed.png", + "tiled": true, + "topMargin": 16, + "width": 192 + } + } + }, + { + "adaptCollisionMaskAutomatically": false, + "assetStoreId": "0d91b7b0a2a8562a0172b4d5e9bf3d80340f866a030aa7a5f3baf6157840f1c3", + "name": "RedHero", + "tags": "", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Draggable", + "type": "DraggableBehavior::Draggable", + "checkCollisionMask": true + }, + { + "name": "DraggablePhysics", + "type": "DraggablePhysics::DraggablePhysics", + "PhysicsBehavior": "Physics2", + "MouseButton": "Left", + "MaxForce": 500, + "Frequency": 10, + "Damping": 1, + "MouseJointID": 1, + "EnableAutomaticDragging": true + }, + { + "name": "Physics2", + "type": "Physics2::Physics2Behavior", + "bodyType": "Dynamic", + "bullet": false, + "fixedRotation": false, + "canSleep": true, + "shape": "Box", + "shapeDimensionA": 0, + "shapeDimensionB": 0, + "shapeOffsetX": 0, + "shapeOffsetY": 0, + "polygonOrigin": "Center", + "vertices": [], + "density": 1, + "friction": 0.3, + "restitution": 0.1, + "linearDamping": 10, + "angularDamping": 10, + "gravityScale": 0, + "layers": 1, + "masks": 1 + } + ], + "animations": [ + { + "name": "Run", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "timeBetweenFrames": 0.04, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_1.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_2.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_3.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_4.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_5.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_6.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_7.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_8.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_9.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_10.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_11.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_12.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_13.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_14.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_15.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_16.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_17.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_18.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Run_19.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + } + ] + } + ] + }, + { + "name": "Idle", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "timeBetweenFrames": 0.25, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "Red hero_Idle_1.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Idle_2.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Idle_3.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Idle_4.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + } + ] + } + ] + }, + { + "name": "Jump", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "timeBetweenFrames": 0.025, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "Red hero_Jump.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + } + ] + } + ] + }, + { + "name": "Fall", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "timeBetweenFrames": 0.025, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "Red hero_Fall.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + } + ] + } + ] + }, + { + "name": "Climb", + "useMultipleDirections": false, + "directions": [ + { + "looping": true, + "timeBetweenFrames": 0.04, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_1.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_2.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_3.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_4.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_5.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_6.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_7.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_8.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_9.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_10.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_11.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + }, + { + "hasCustomCollisionMask": true, + "image": "Red hero_Climb_12.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 14, + "y": 11 + }, + { + "x": 65, + "y": 11 + }, + { + "x": 65, + "y": 90 + }, + { + "x": 14, + "y": 90 + } + ] + ] + } + ] + } + ] + } + ] + }, + { + "assetStoreId": "7f3b0673f7479b4b487bcbadbb3c8b9412a8e6d8694543f9ec3419365ebff3f5", + "name": "EnablePhysics_Toggle", + "tags": "", + "type": "SpriteToggleSwitch::SpriteToggleSwitch", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "IsChecked": false + }, + "childrenContent": { + "State": { + "adaptCollisionMaskAutomatically": false, + "updateIfNotVisible": false, + "animations": [ + { + "name": "Unchecked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_Off.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Checked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_On.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + } + } + }, + { + "assetStoreId": "7f3b0673f7479b4b487bcbadbb3c8b9412a8e6d8694543f9ec3419365ebff3f5", + "name": "SeparateObjects_Toggle", + "tags": "", + "type": "SpriteToggleSwitch::SpriteToggleSwitch", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "IsChecked": false + }, + "childrenContent": { + "State": { + "adaptCollisionMaskAutomatically": false, + "updateIfNotVisible": false, + "animations": [ + { + "name": "Unchecked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_Off.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Checked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_On.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + } + } + }, + { + "assetStoreId": "7f3b0673f7479b4b487bcbadbb3c8b9412a8e6d8694543f9ec3419365ebff3f5", + "name": "CollisionCheck_Toggle", + "tags": "", + "type": "SpriteToggleSwitch::SpriteToggleSwitch", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "IsChecked": false + }, + "childrenContent": { + "State": { + "adaptCollisionMaskAutomatically": false, + "updateIfNotVisible": false, + "animations": [ + { + "name": "Unchecked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_Off.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Checked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_On.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + } + } + }, + { + "assetStoreId": "7f3b0673f7479b4b487bcbadbb3c8b9412a8e6d8694543f9ec3419365ebff3f5", + "name": "PhysicsCollisionCheck_Toggle", + "tags": "", + "type": "SpriteToggleSwitch::SpriteToggleSwitch", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "IsChecked": false + }, + "childrenContent": { + "State": { + "adaptCollisionMaskAutomatically": false, + "updateIfNotVisible": false, + "animations": [ + { + "name": "Unchecked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_Off.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Checked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_On.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + } + } + }, + { + "assetStoreId": "7f3b0673f7479b4b487bcbadbb3c8b9412a8e6d8694543f9ec3419365ebff3f5", + "name": "PhysicsSleep_Toggle", + "tags": "", + "type": "SpriteToggleSwitch::SpriteToggleSwitch", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "IsChecked": false + }, + "childrenContent": { + "State": { + "adaptCollisionMaskAutomatically": false, + "updateIfNotVisible": false, + "animations": [ + { + "name": "Unchecked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_Off.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Checked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_On.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + } + } + }, + { + "assetStoreId": "7f3b0673f7479b4b487bcbadbb3c8b9412a8e6d8694543f9ec3419365ebff3f5", + "name": "CheckPointInside_Toggle", + "tags": "", + "type": "SpriteToggleSwitch::SpriteToggleSwitch", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "IsChecked": false + }, + "childrenContent": { + "State": { + "adaptCollisionMaskAutomatically": false, + "updateIfNotVisible": false, + "animations": [ + { + "name": "Unchecked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_Off.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Checked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_On.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + } + } + }, + { + "assetStoreId": "7f3b0673f7479b4b487bcbadbb3c8b9412a8e6d8694543f9ec3419365ebff3f5", + "name": "ChangeColors_Toggle", + "tags": "", + "type": "SpriteToggleSwitch::SpriteToggleSwitch", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "IsChecked": false + }, + "childrenContent": { + "State": { + "adaptCollisionMaskAutomatically": false, + "updateIfNotVisible": false, + "animations": [ + { + "name": "Unchecked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_Off.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Checked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_On.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + } + } + }, + { + "assetStoreId": "7f3b0673f7479b4b487bcbadbb3c8b9412a8e6d8694543f9ec3419365ebff3f5", + "name": "MoveParticles_Toggle", + "tags": "", + "type": "SpriteToggleSwitch::SpriteToggleSwitch", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "IsChecked": false + }, + "childrenContent": { + "State": { + "adaptCollisionMaskAutomatically": false, + "updateIfNotVisible": false, + "animations": [ + { + "name": "Unchecked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_Off.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Checked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_On.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + } + } + }, + { + "assetStoreId": "7f3b0673f7479b4b487bcbadbb3c8b9412a8e6d8694543f9ec3419365ebff3f5", + "name": "ForEach_Toggle", + "tags": "", + "type": "SpriteToggleSwitch::SpriteToggleSwitch", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "IsChecked": false + }, + "childrenContent": { + "State": { + "adaptCollisionMaskAutomatically": false, + "updateIfNotVisible": false, + "animations": [ + { + "name": "Unchecked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_Off.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + }, + { + "name": "Checked", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": false, + "image": "Square White Toggle_On.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 0, + "y": 0 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [] + } + ] + } + ] + } + ] + } + } + }, + { + "assetStoreId": "5dd680ccdc190e12eb5e6964f0ce97a351116d204fb61113e6ce9b4ed85099b4", + "name": "LowPoly_Model", + "tags": "", + "type": "Scene3D::Model3DObject", + "variables": [], + "effects": [], + "behaviors": [], + "content": { + "centerLocation": "ModelOrigin", + "depth": 69, + "height": 69, + "keepAspectRatio": true, + "materialType": "Basic", + "modelResourceName": "Water.glb", + "originLocation": "ModelOrigin", + "rotationX": 90, + "rotationY": 0, + "rotationZ": 0, + "width": 69, + "animations": [] + } + } + ], + "events": [ + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Setup", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "DepartScene" + }, + "parameters": [ + "" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "VarGlobalTxt" + }, + "parameters": [ + "ObjectToTest", + "=", + "\"Simple3D\"" + ] + } + ], + "actions": [], + "events": [ + { + "infiniteLoopWarning": true, + "type": "BuiltinCommonInstructions::While", + "whileConditions": [ + { + "type": { + "value": "SceneInstancesCount" + }, + "parameters": [ + "", + "LowPoly_Model", + "<", + "GlobalVariable(QuantityToCreate)" + ] + } + ], + "conditions": [], + "actions": [ + { + "type": { + "value": "Create" + }, + "parameters": [ + "", + "LowPoly_Model", + "CameraCenterX() + RandomInRange(-300,300)", + "CameraCenterY() + RandomInRange(-300,300)", + "" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "ObjectCount_Text", + "=", + "\"Objects: \" + ToString(SceneInstancesCount(CountedObjects))" + ] + }, + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "TimeToDisplay_Text", + "=", + "\"Time to display: \" + ToString((Time(\"timestamp\") - GlobalVariable(SceneStartTime)) / 1000) + \" seconds\"" + ] + }, + { + "type": { + "value": "SetCameraCenterX" + }, + "parameters": [ + "", + "+", + "0.5 * (GlobalVariable(QuantityToCreate) / 1000)", + "", + "" + ] + } + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Buttons", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Delete Objects", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "DepartScene" + }, + "parameters": [ + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Cache" + }, + "parameters": [ + "TimeToDelete_Text" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" + }, + "parameters": [ + "DeleteObjects_Button", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::Activate" + }, + "parameters": [ + "DeleteObjects_Button", + "", + "" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::SetOpacity" + }, + "parameters": [ + "DeleteObjects_Button", + "=", + "128" + ] + }, + { + "type": { + "value": "ModVarGlobal" + }, + "parameters": [ + "DeleteStartTime", + "=", + "Time(\"timestamp\")" + ] + }, + { + "type": { + "value": "Delete" + }, + "parameters": [ + "CountedObjects", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "PanelSpriteButton::PanelSpriteButton::IsActivated" + }, + "parameters": [ + "DeleteObjects_Button", + "" + ] + }, + { + "type": { + "value": "SceneInstancesCount" + }, + "parameters": [ + "", + "CountedObjects", + "=", + "0" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "TimeToDelete_Text", + "=", + "\"Time to delete: \" + ToString((Time(\"timestamp\") - GlobalVariable(DeleteStartTime)) / 1000) + \" seconds\"" + ] + }, + { + "type": { + "value": "Montre" + }, + "parameters": [ + "TimeToDelete_Text", + "" + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Go Back", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::IsClicked" + }, + "parameters": [ + "GoBack_Button", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::Activate" + }, + "parameters": [ + "GoBack_Button", + "", + "" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::Activate" + }, + "parameters": [ + "DeleteObjects_Button", + "", + "" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::SetOpacity" + }, + "parameters": [ + "GoBack_Button", + "=", + "128" + ] + }, + { + "type": { + "value": "PanelSpriteButton::PanelSpriteButton::SetOpacity" + }, + "parameters": [ + "DeleteObjects_Button", + "=", + "128" + ] + }, + { + "type": { + "value": "Wait" + }, + "parameters": [ + "0.0001" + ] + }, + { + "type": { + "value": "ModVarGlobal" + }, + "parameters": [ + "SceneEndTime", + "=", + "Time(\"timestamp\")" + ] + }, + { + "type": { + "value": "Scene" + }, + "parameters": [ + "", + "\"Menu\"", + "" + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "For Each Loop", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "ForEach_Toggle", + "" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::ForEach", + "object": "Sprite", + "conditions": [], + "actions": [ + { + "type": { + "value": "Rotate" + }, + "parameters": [ + "Sprite", + "(Sprite.X() + Sprite.Y())/8", + "Sprite.Y()" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::ForEach", + "object": "TiledSprite", + "conditions": [], + "actions": [ + { + "type": { + "value": "Rotate" + }, + "parameters": [ + "TiledSprite", + "(TiledSprite.X() + TiledSprite.Y())/8", + "Sprite.Y()" + ] + } + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Change Particle colors based on mouse position", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "ChangeColors_Toggle", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "ChangeColor" + }, + "parameters": [ + "Sprite", + "ColorConversion::HslToRgb((DistanceBetweenPositions(CursorX(),CursorY(), Sprite.X(), Sprite.Y())),100,50)" + ] + }, + { + "type": { + "value": "TiledSpriteObject::SetColor" + }, + "parameters": [ + "TiledSprite", + "ColorConversion::HslToRgb((DistanceBetweenPositions(CursorX(),CursorY(), TiledSprite.X(), TiledSprite.Y())),100,50)" + ] + }, + { + "type": { + "value": "ParticleSystem::ParticleColor1" + }, + "parameters": [ + "ParticleEmitter", + "ColorConversion::HslToRgb(CursorX()/3,100,50)" + ] + }, + { + "type": { + "value": "ParticleSystem::ParticleColor2" + }, + "parameters": [ + "ParticleEmitter", + "ColorConversion::HslToRgb(CursorY()/3,100,50)" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "ChangeColors_Toggle", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "ChangeColor" + }, + "parameters": [ + "Sprite", + "\"255;255;255\"" + ] + }, + { + "type": { + "value": "TiledSpriteObject::SetColor" + }, + "parameters": [ + "TiledSprite", + "\"255;255;255\"" + ] + }, + { + "type": { + "value": "ParticleSystem::ParticleColor1" + }, + "parameters": [ + "ParticleEmitter", + "\"255;255;255\"" + ] + }, + { + "type": { + "value": "ParticleSystem::ParticleColor2" + }, + "parameters": [ + "ParticleEmitter", + "\"255;255;255\"" + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Enable physics", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "EnablePhysics_Toggle", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "ActivateBehavior" + }, + "parameters": [ + "Sprite", + "Physics2", + "yes" + ] + }, + { + "type": { + "value": "ActivateBehavior" + }, + "parameters": [ + "TiledSprite", + "Physics2", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "EnablePhysics_Toggle", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "ActivateBehavior" + }, + "parameters": [ + "Sprite", + "Physics2", + "no" + ] + }, + { + "type": { + "value": "ActivateBehavior" + }, + "parameters": [ + "TiledSprite", + "Physics2", + "no" + ] + }, + { + "type": { + "value": "SpriteToggleSwitch::SpriteToggleSwitch::SetChecked" + }, + "parameters": [ + "PhysicsCollisionCheck_Toggle", + "no", + "" + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Disable Physics sleeping", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "PhysicsSleep_Toggle", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Physics2::SetSleepingAllowed" + }, + "parameters": [ + "Sprite", + "Physics2", + "no" + ] + }, + { + "type": { + "value": "Physics2::SetSleepingAllowed" + }, + "parameters": [ + "TiledSprite", + "Physics2", + "no" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "PhysicsSleep_Toggle", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Physics2::SetSleepingAllowed" + }, + "parameters": [ + "Sprite", + "Physics2", + "yes" + ] + }, + { + "type": { + "value": "Physics2::SetSleepingAllowed" + }, + "parameters": [ + "TiledSprite", + "Physics2", + "yes" + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Separate objects", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "SeparateObjects_Toggle", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "SeparateFromObjects" + }, + "parameters": [ + "Sprite", + "Sprite", + "no" + ] + }, + { + "type": { + "value": "SeparateFromObjects" + }, + "parameters": [ + "TiledSprite", + "TiledSprite", + "no" + ] + }, + { + "type": { + "value": "SeparateFromObjects" + }, + "parameters": [ + "Sprite", + "RedHero", + "no" + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Check if point inside", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "CheckPointInside_Toggle", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "ChangeScale" + }, + "parameters": [ + "Sprite", + "=", + "1" + ] + }, + { + "type": { + "value": "TiledSpriteObject::SetSize" + }, + "parameters": [ + "TiledSprite", + "6", + "6" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "CheckPointInside_Toggle", + "" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "ChangeScale" + }, + "parameters": [ + "Sprite", + "=", + "1" + ] + }, + { + "type": { + "value": "TiledSpriteObject::SetSize" + }, + "parameters": [ + "TiledSprite", + "6", + "6" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "CollisionPoint" + }, + "parameters": [ + "Sprite", + "CursorX()", + "CursorY()" + ] + } + ], + "actions": [ + { + "type": { + "value": "ChangeScale" + }, + "parameters": [ + "Sprite", + "=", + "8" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "CollisionPoint" + }, + "parameters": [ + "TiledSprite", + "CursorX()", + "CursorY()" + ] + } + ], + "actions": [ + { + "type": { + "value": "TiledSpriteObject::SetSize" + }, + "parameters": [ + "TiledSprite", + "6*8", + "6*8" + ] + } + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Check collisions", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "CollisionCheck_Toggle", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "ChangeColor" + }, + "parameters": [ + "Sprite", + "\"255;255;255\"" + ] + }, + { + "type": { + "value": "TiledSpriteObject::SetColor" + }, + "parameters": [ + "TiledSprite", + "\"255;255;255\"" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "CollisionCheck_Toggle", + "" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "ChangeColor" + }, + "parameters": [ + "Sprite", + "\"255;255;255\"" + ] + }, + { + "type": { + "value": "TiledSpriteObject::SetColor" + }, + "parameters": [ + "TiledSprite", + "\"255;255;255\"" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "CollisionNP" + }, + "parameters": [ + "Sprite", + "Sprite", + "RedHero", + "", + "no" + ] + } + ], + "actions": [ + { + "type": { + "value": "ChangeColor" + }, + "parameters": [ + "Sprite", + "\"0;95;255\"" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "CollisionNP" + }, + "parameters": [ + "TiledSprite", + "TiledSprite", + "RedHero", + "", + "no" + ] + } + ], + "actions": [ + { + "type": { + "value": "TiledSpriteObject::SetColor" + }, + "parameters": [ + "TiledSprite", + "\"0;95;255\"" + ] + } + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Physics collisions", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "PhysicsCollisionCheck_Toggle", + "" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "ChangeColor" + }, + "parameters": [ + "Sprite", + "\"255;255;255\"" + ] + }, + { + "type": { + "value": "TiledSpriteObject::SetColor" + }, + "parameters": [ + "TiledSprite", + "\"255;255;255\"" + ] + } + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteToggleSwitch::SpriteToggleSwitch::IsChecked" + }, + "parameters": [ + "PhysicsCollisionCheck_Toggle", + "" + ] + } + ], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "SpriteToggleSwitch::SpriteToggleSwitch::SetChecked" + }, + "parameters": [ + "EnablePhysics_Toggle", + "", + "" + ] + }, + { + "type": { + "value": "ActivateBehavior" + }, + "parameters": [ + "Sprite", + "Physics2", + "yes" + ] + }, + { + "type": { + "value": "ActivateBehavior" + }, + "parameters": [ + "TiledSprite", + "Physics2", + "yes" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "ChangeColor" + }, + "parameters": [ + "Sprite", + "\"255;255;255\"" + ] + }, + { + "type": { + "value": "TiledSpriteObject::SetColor" + }, + "parameters": [ + "TiledSprite", + "\"255;255;255\"" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "Physics2::Collision" + }, + "parameters": [ + "Sprite", + "Physics2", + "Sprite", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "ChangeColor" + }, + "parameters": [ + "Sprite", + "\"208;2;27\"" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "Physics2::Collision" + }, + "parameters": [ + "TiledSprite", + "Physics2", + "TiledSprite", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "TiledSpriteObject::SetColor" + }, + "parameters": [ + "TiledSprite", + "\"208;2;27\"" + ] + } + ] + } + ] + } + ], + "parameters": [] + } + ], + "parameters": [] + } + ], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 0.1, + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + }, + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 0.1, + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "UI", + "renderingType": "", + "visibility": true, + "cameras": [], + "effects": [] + } + ], + "behaviorsSharedData": [ + { + "name": "DraggablePhysics", + "type": "DraggablePhysics::DraggablePhysics" + }, + { + "name": "FPSDisplayer", + "type": "FPS::FPSDisplayer" + }, + { + "name": "Physics2", + "type": "Physics2::Physics2Behavior", + "gravityX": 0, + "gravityY": 9.8, + "scaleX": 100, + "scaleY": 100 + } + ] + }, + { + "b": 0, + "disableInputWhenNotFocused": true, + "mangledName": "LoadTest_952D", + "name": "LoadTest_2D", "r": 0, "standardSortMethod": true, "stopSoundsOnStartup": true, @@ -3273,9 +8196,9 @@ "effects": [], "behaviors": [ { - "checkCollisionMask": true, "name": "Draggable", - "type": "DraggableBehavior::Draggable" + "type": "DraggableBehavior::Draggable", + "checkCollisionMask": true }, { "name": "DraggablePhysics",