Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "firstLayout": "",
- "gdVersion": {
- "build": 98,
- "major": 4,
- "minor": 0,
- "revision": 0
- },
- "properties": {
- "adMobAppId": "",
- "adaptGameResolutionAtRuntime": true,
- "folderProject": false,
- "linuxExecutableFilename": "",
- "macExecutableFilename": "",
- "orientation": "landscape",
- "packageName": "com.example.gamename",
- "projectFile": "C:\\Users\\RTX-Bouh\\Desktop\\carouseltest\\game.json",
- "scaleMode": "linear",
- "sizeOnStartupMode": "adaptWidth",
- "useExternalSourceFiles": false,
- "version": "1.0.0",
- "winExecutableFilename": "",
- "winExecutableIconFile": "",
- "name": "Project",
- "author": "",
- "windowWidth": 800,
- "windowHeight": 600,
- "latestCompilationDirectory": "",
- "maxFPS": 60,
- "minFPS": 20,
- "verticalSync": false,
- "platformSpecificAssets": {},
- "loadingScreen": {
- "showGDevelopSplash": true
- },
- "extensions": [
- {
- "name": "BuiltinObject"
- },
- {
- "name": "BuiltinAudio"
- },
- {
- "name": "BuiltinVariables"
- },
- {
- "name": "BuiltinTime"
- },
- {
- "name": "BuiltinMouse"
- },
- {
- "name": "BuiltinKeyboard"
- },
- {
- "name": "BuiltinJoystick"
- },
- {
- "name": "BuiltinCamera"
- },
- {
- "name": "BuiltinWindow"
- },
- {
- "name": "BuiltinFile"
- },
- {
- "name": "BuiltinNetwork"
- },
- {
- "name": "BuiltinScene"
- },
- {
- "name": "BuiltinAdvanced"
- },
- {
- "name": "Sprite"
- },
- {
- "name": "BuiltinCommonInstructions"
- },
- {
- "name": "BuiltinCommonConversions"
- },
- {
- "name": "BuiltinStringInstructions"
- },
- {
- "name": "BuiltinMathematicalTools"
- },
- {
- "name": "BuiltinExternalLayouts"
- }
- ],
- "platforms": [
- {
- "name": "GDevelop JS platform"
- }
- ],
- "currentPlatform": "GDevelop JS platform"
- },
- "resources": {
- "resources": [
- {
- "alwaysLoaded": false,
- "file": "461223101.jpg",
- "kind": "image",
- "metadata": "",
- "name": "461223101.jpg",
- "smoothed": true,
- "userAdded": true
- },
- {
- "alwaysLoaded": false,
- "file": "461223102.jpg",
- "kind": "image",
- "metadata": "",
- "name": "461223102.jpg",
- "smoothed": true,
- "userAdded": true
- },
- {
- "alwaysLoaded": false,
- "file": "461223103.jpg",
- "kind": "image",
- "metadata": "",
- "name": "461223103.jpg",
- "smoothed": true,
- "userAdded": true
- },
- {
- "alwaysLoaded": false,
- "file": "461223105.jpg",
- "kind": "image",
- "metadata": "",
- "name": "461223105.jpg",
- "smoothed": true,
- "userAdded": true
- },
- {
- "alwaysLoaded": false,
- "file": "461223106.jpg",
- "kind": "image",
- "metadata": "",
- "name": "461223106.jpg",
- "smoothed": true,
- "userAdded": true
- },
- {
- "alwaysLoaded": false,
- "file": "461223107.jpg",
- "kind": "image",
- "metadata": "",
- "name": "461223107.jpg",
- "smoothed": true,
- "userAdded": true
- },
- {
- "alwaysLoaded": false,
- "file": "461223108.jpg",
- "kind": "image",
- "metadata": "",
- "name": "461223108.jpg",
- "smoothed": true,
- "userAdded": true
- }
- ],
- "resourceFolders": []
- },
- "objects": [],
- "objectsGroups": [],
- "variables": [],
- "layouts": [
- {
- "b": 209,
- "disableInputWhenNotFocused": true,
- "mangledName": "NewScene",
- "name": "NewScene",
- "oglFOV": 90,
- "oglZFar": 500,
- "oglZNear": 1,
- "r": 209,
- "standardSortMethod": true,
- "stopSoundsOnStartup": true,
- "title": "",
- "v": 209,
- "uiSettings": {
- "grid": false,
- "gridB": 255,
- "gridG": 180,
- "gridHeight": 32,
- "gridOffsetX": 0,
- "gridOffsetY": 0,
- "gridR": 158,
- "gridWidth": 32,
- "snap": true,
- "windowMask": false,
- "zoomFactor": 1
- },
- "objectsGroups": [],
- "variables": [],
- "instances": [
- {
- "angle": 0,
- "customSize": false,
- "height": 0,
- "layer": "",
- "locked": false,
- "name": "Other",
- "width": 0,
- "x": 307,
- "y": 457,
- "zOrder": 1,
- "numberProperties": [],
- "stringProperties": [],
- "initialVariables": []
- },
- {
- "angle": 0,
- "customSize": false,
- "height": 0,
- "layer": "",
- "locked": false,
- "name": "NewObject",
- "width": 0,
- "x": 322,
- "y": 518,
- "zOrder": 2,
- "numberProperties": [],
- "stringProperties": [],
- "initialVariables": []
- }
- ],
- "objects": [
- {
- "name": "Textures",
- "tags": "",
- "type": "Sprite",
- "updateIfNotVisible": false,
- "variables": [],
- "behaviors": [
- {
- "name": "Tween",
- "type": "Tween::TweenBehavior"
- }
- ],
- "animations": [
- {
- "name": "",
- "useMultipleDirections": false,
- "directions": [
- {
- "looping": false,
- "timeBetweenFrames": 0.08,
- "sprites": [
- {
- "hasCustomCollisionMask": false,
- "image": "461223101.jpg",
- "points": [],
- "originPoint": {
- "name": "origine",
- "x": 0,
- "y": 0
- },
- "centerPoint": {
- "automatic": true,
- "name": "centre",
- "x": 0,
- "y": 0
- },
- "customCollisionMask": []
- },
- {
- "hasCustomCollisionMask": false,
- "image": "461223102.jpg",
- "points": [],
- "originPoint": {
- "name": "origine",
- "x": 0,
- "y": 0
- },
- "centerPoint": {
- "automatic": true,
- "name": "centre",
- "x": 0,
- "y": 0
- },
- "customCollisionMask": []
- },
- {
- "hasCustomCollisionMask": false,
- "image": "461223103.jpg",
- "points": [],
- "originPoint": {
- "name": "origine",
- "x": 0,
- "y": 0
- },
- "centerPoint": {
- "automatic": true,
- "name": "centre",
- "x": 0,
- "y": 0
- },
- "customCollisionMask": []
- },
- {
- "hasCustomCollisionMask": false,
- "image": "461223105.jpg",
- "points": [],
- "originPoint": {
- "name": "origine",
- "x": 0,
- "y": 0
- },
- "centerPoint": {
- "automatic": true,
- "name": "centre",
- "x": 0,
- "y": 0
- },
- "customCollisionMask": []
- },
- {
- "hasCustomCollisionMask": false,
- "image": "461223106.jpg",
- "points": [],
- "originPoint": {
- "name": "origine",
- "x": 0,
- "y": 0
- },
- "centerPoint": {
- "automatic": true,
- "name": "centre",
- "x": 0,
- "y": 0
- },
- "customCollisionMask": []
- },
- {
- "hasCustomCollisionMask": false,
- "image": "461223107.jpg",
- "points": [],
- "originPoint": {
- "name": "origine",
- "x": 0,
- "y": 0
- },
- "centerPoint": {
- "automatic": true,
- "name": "centre",
- "x": 0,
- "y": 0
- },
- "customCollisionMask": []
- },
- {
- "hasCustomCollisionMask": false,
- "image": "461223108.jpg",
- "points": [],
- "originPoint": {
- "name": "origine",
- "x": 0,
- "y": 0
- },
- "centerPoint": {
- "automatic": true,
- "name": "centre",
- "x": 0,
- "y": 0
- },
- "customCollisionMask": []
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "bold": false,
- "italic": false,
- "name": "Other",
- "smoothed": true,
- "tags": "",
- "type": "TextObject::Text",
- "underlined": false,
- "variables": [],
- "behaviors": [],
- "string": "Otherscene",
- "font": "",
- "characterSize": 20,
- "color": {
- "b": 0,
- "g": 0,
- "r": 0
- }
- },
- {
- "bold": false,
- "italic": false,
- "name": "NewObject",
- "smoothed": true,
- "tags": "",
- "type": "TextObject::Text",
- "underlined": false,
- "variables": [],
- "behaviors": [],
- "string": "Text",
- "font": "",
- "characterSize": 20,
- "color": {
- "b": 0,
- "g": 0,
- "r": 0
- }
- }
- ],
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "DepartScene"
- },
- "parameters": [
- ""
- ],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "ModVarScene"
- },
- "parameters": [
- "taille",
- "=",
- "120"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarScene"
- },
- "parameters": [
- "textures.Xpos",
- "=",
- "Variable(taille)"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarScene"
- },
- "parameters": [
- "textures.Ypos",
- "=",
- "200"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarScene"
- },
- "parameters": [
- "textures.nombre",
- "=",
- "0"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ResetTimer"
- },
- "parameters": [
- "",
- "\"textures\""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "DEBUG::Log"
- },
- "parameters": [
- "",
- "\"1\"",
- ""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "DEBUG::Open_inspector"
- },
- "parameters": [
- "",
- ""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "MouseButtonReleased"
- },
- "parameters": [
- "",
- "Left"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "SourisSurObjet"
- },
- "parameters": [
- "Other",
- "",
- "",
- ""
- ],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "Scene"
- },
- "parameters": [
- "",
- "\"NewScene2\"",
- ""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "DEBUG::Log"
- },
- "parameters": [
- "",
- "\"2\"",
- ""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- },
- {
- "colorB": 228,
- "colorG": 176,
- "colorR": 74,
- "creationTime": 0,
- "disabled": false,
- "folded": false,
- "name": "Creation of objects",
- "source": "",
- "type": "BuiltinCommonInstructions::Group",
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "VarScene"
- },
- "parameters": [
- "textures.nombre",
- "<",
- "7"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "Timer"
- },
- "parameters": [
- "",
- "0.2",
- "\"textures\""
- ],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "DEBUG::Log"
- },
- "parameters": [
- "",
- "\"3\"",
- ""
- ],
- "subInstructions": []
- }
- ],
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "Initialize the objects",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "BuiltinCommonInstructions::Once"
- },
- "parameters": [],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "Create"
- },
- "parameters": [
- "",
- "Textures",
- "Variable(textures.Xpos)",
- "Variable(textures.Ypos)",
- "\"\""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ChangeScale"
- },
- "parameters": [
- "Textures",
- "=",
- "0.01"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ChangeSprite"
- },
- "parameters": [
- "Textures",
- "=",
- "Variable(textures.nombre)"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarObjet"
- },
- "parameters": [
- "Textures",
- "ID",
- "=",
- "Variable(textures.nombre)"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "PauseAnimation"
- },
- "parameters": [
- "Textures"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarScene"
- },
- "parameters": [
- "textures.Xpos",
- "+",
- "Variable(taille)"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "DEBUG::Log"
- },
- "parameters": [
- "",
- "\"4\"",
- ""
- ],
- "subInstructions": []
- }
- ],
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "When objects is created and initialize we reset timet and increase count for next object",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "ModVarScene"
- },
- "parameters": [
- "textures.nombre",
- "+",
- "1"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ResetTimer"
- },
- "parameters": [
- "",
- "\"textures\""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "DEBUG::Log"
- },
- "parameters": [
- "",
- "\"5\"",
- ""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ]
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "Carriage return",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "VarScene"
- },
- "parameters": [
- "textures.Xpos",
- ">",
- "720"
- ],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "ModVarScene"
- },
- "parameters": [
- "textures.Xpos",
- "=",
- "Variable(taille)"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarScene"
- },
- "parameters": [
- "textures.Ypos",
- "+",
- "Variable(taille)"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "DEBUG::Log"
- },
- "parameters": [
- "",
- "\"6\"",
- ""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ]
- }
- ],
- "parameters": []
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::ForEach",
- "object": "Textures",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "ScaleHeight"
- },
- "parameters": [
- "Textures",
- "=",
- "0.01"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ScaleWidth"
- },
- "parameters": [
- "Textures",
- "=",
- "0.01"
- ],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "Tween::AddObjectScaleTween"
- },
- "parameters": [
- "Textures",
- "Tween",
- "\"tween\" + ToString(Variable(textures.nombre))",
- "0.15",
- "0.15",
- "\"linear\"",
- "400",
- ""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "DEBUG::Log"
- },
- "parameters": [
- "",
- "\"7\"",
- ""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ],
- "layers": [
- {
- "name": "",
- "visibility": true,
- "cameras": [
- {
- "defaultSize": true,
- "defaultViewport": true,
- "height": 0,
- "viewportBottom": 1,
- "viewportLeft": 0,
- "viewportRight": 1,
- "viewportTop": 0,
- "width": 0
- }
- ],
- "effects": []
- }
- ],
- "behaviorsSharedData": [
- {
- "name": "Tween",
- "type": "Tween::TweenBehavior"
- }
- ]
- },
- {
- "b": 209,
- "disableInputWhenNotFocused": true,
- "mangledName": "NewScene2",
- "name": "NewScene2",
- "oglFOV": 90,
- "oglZFar": 500,
- "oglZNear": 1,
- "r": 209,
- "standardSortMethod": true,
- "stopSoundsOnStartup": true,
- "title": "",
- "v": 209,
- "uiSettings": {
- "grid": false,
- "gridB": 255,
- "gridG": 180,
- "gridHeight": 32,
- "gridOffsetX": 0,
- "gridOffsetY": 0,
- "gridR": 158,
- "gridWidth": 32,
- "snap": true,
- "windowMask": false,
- "zoomFactor": 1
- },
- "objectsGroups": [],
- "variables": [],
- "instances": [
- {
- "angle": 0,
- "customSize": false,
- "height": 0,
- "layer": "",
- "locked": false,
- "name": "NewObject",
- "width": 0,
- "x": 303,
- "y": 449,
- "zOrder": 1,
- "numberProperties": [],
- "stringProperties": [],
- "initialVariables": []
- }
- ],
- "objects": [
- {
- "bold": false,
- "italic": false,
- "name": "NewObject",
- "smoothed": true,
- "tags": "",
- "type": "TextObject::Text",
- "underlined": false,
- "variables": [],
- "behaviors": [],
- "string": "Click me!",
- "font": "",
- "characterSize": 20,
- "color": {
- "b": 0,
- "g": 0,
- "r": 0
- }
- }
- ],
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "MouseButtonReleased"
- },
- "parameters": [
- "",
- "Left"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "SourisSurObjet"
- },
- "parameters": [
- "NewObject",
- "",
- "",
- ""
- ],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "Scene"
- },
- "parameters": [
- "",
- "\"NewScene\"",
- ""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ],
- "layers": [
- {
- "name": "",
- "visibility": true,
- "cameras": [
- {
- "defaultSize": true,
- "defaultViewport": true,
- "height": 0,
- "viewportBottom": 1,
- "viewportLeft": 0,
- "viewportRight": 1,
- "viewportTop": 0,
- "width": 0
- }
- ],
- "effects": []
- }
- ],
- "behaviorsSharedData": []
- }
- ],
- "externalEvents": [],
- "eventsFunctionsExtensions": [
- {
- "author": "@Bouh",
- "description": "Showing info in console",
- "extensionNamespace": "",
- "fullName": "Console logger",
- "name": "DEBUG",
- "shortDescription": "",
- "tags": "javascript, console, debugging",
- "version": "0.0.1",
- "eventsFunctions": [
- {
- "description": "Text showing in console",
- "fullName": "console.log()",
- "functionType": "Action",
- "name": "Log",
- "sentence": "console.log( _PARAM1_ )",
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::JsCode",
- "inlineCode": "\nconst text_arg = eventsFunctionContext.getArgument(\"text_arg\");\nconsole.log(text_arg);",
- "parameterObjects": "",
- "useStrict": true
- }
- ],
- "parameters": [
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Text to display in console logger",
- "longDescription": "",
- "name": "text_arg",
- "optional": false,
- "supplementaryInformation": "",
- "type": "string"
- }
- ],
- "objectGroups": []
- },
- {
- "description": "",
- "fullName": "",
- "functionType": "Action",
- "name": "Add_Debug_line",
- "sentence": "Affiche _PARAM2_ : _PARAM3_ dans le texte _PARAM1_",
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "ModVarGlobalTxt"
- },
- "parameters": [
- "DEBUG_TEXT",
- "+",
- "GetArgumentAsString(\"description\") + \" : \" + GetArgumentAsString(\"valeur\") + NewLine() + \" \""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ],
- "parameters": [
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "",
- "longDescription": "",
- "name": "object_text",
- "optional": false,
- "supplementaryInformation": "TextObject::Text",
- "type": "objectList"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Description de la ligne de debug",
- "longDescription": "",
- "name": "description",
- "optional": false,
- "supplementaryInformation": "",
- "type": "string"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Valeur de la ligne de debug",
- "longDescription": "",
- "name": "valeur",
- "optional": false,
- "supplementaryInformation": "",
- "type": "string"
- }
- ],
- "objectGroups": []
- },
- {
- "description": "",
- "fullName": "",
- "functionType": "Action",
- "name": "Show_Debug_Text",
- "sentence": "Affiche les lignes de debug de _PARAM1_",
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "TextObject::String"
- },
- "parameters": [
- "object_text",
- "=",
- "\"Debug information :\" + NewLine() + \n \" \" + GlobalVariableString(DEBUG_TEXT) + NewLine()"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarGlobalTxt"
- },
- "parameters": [
- "DEBUG_TEXT",
- "=",
- "\"\""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ],
- "parameters": [
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "",
- "longDescription": "",
- "name": "object_text",
- "optional": false,
- "supplementaryInformation": "TextObject::Text",
- "type": "objectList"
- }
- ],
- "objectGroups": []
- },
- {
- "description": "Show Raycast with angle",
- "fullName": "WIP Show Raycast angle",
- "functionType": "Action",
- "name": "Draw_Raycast_angle",
- "sentence": "Draw raycast with _PARAM1_, Thickness : _PARAM2_, Start _PARAM3_ : _PARAM4_, Angle : _PARAM5_, Length : _PARAM6_, Offset : _PARAM7_",
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "ModVarObjet"
- },
- "parameters": [
- "object",
- "angle",
- "=",
- "ToRad(GetArgumentAsNumber(\"angleInDegrees\"))"
- ],
- "subInstructions": []
- }
- ],
- "events": []
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "PrimitiveDrawing::Line"
- },
- "parameters": [
- "object",
- "GetArgumentAsNumber(\"StartPositionX\")+\ncos(object.Variable(angle))*GetArgumentAsNumber(\"rayOffset\")",
- "GetArgumentAsNumber(\"StartPositionY\")+\nsin(object.Variable(angle))*GetArgumentAsNumber(\"rayOffset\")",
- "GetArgumentAsNumber(\"StartPositionX\") + cos(object.Variable(angle))*(GetArgumentAsNumber(\"Length\")+GetArgumentAsNumber(\"rayOffset\"))",
- "GetArgumentAsNumber(\"StartPositionY\") + sin(object.Variable(angle))*(GetArgumentAsNumber(\"Length\")+GetArgumentAsNumber(\"rayOffset\"))",
- "GetArgumentAsNumber(\"Thickness\")"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "PrimitiveDrawing::OutlineColor"
- },
- "parameters": [
- "object",
- "\"0;17;255\""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ],
- "parameters": [
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Object painter for debug raycast",
- "longDescription": "",
- "name": "object",
- "optional": false,
- "supplementaryInformation": "PrimitiveDrawing::Drawer",
- "type": "objectList"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Thickness for line",
- "longDescription": "",
- "name": "Thickness",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Start Position X",
- "longDescription": "",
- "name": "StartPositionX",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Start Position Y",
- "longDescription": "",
- "name": "StartPositionY",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Angle in degrees",
- "longDescription": "",
- "name": "angleInDegrees",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Length",
- "longDescription": "",
- "name": "Length",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Color ( red by default \"255;0;0\" )",
- "longDescription": "",
- "name": "Color",
- "optional": false,
- "supplementaryInformation": "",
- "type": "color"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Offset on raycast",
- "longDescription": "",
- "name": "rayOffset",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- }
- ],
- "objectGroups": []
- },
- {
- "description": "Show Raycast with position",
- "fullName": "WIP Show Raycast position",
- "functionType": "Action",
- "name": "Draw_Raycast_position",
- "sentence": "Draw raycast with _PARAM1_, Thickness : _PARAM2_, Start _PARAM3_ : _PARAM4_, End _PARAM5_ : _PARAM6_",
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "PrimitiveDrawing::Line"
- },
- "parameters": [
- "object",
- "GetArgumentAsNumber(\"StartPositionX\")",
- "GetArgumentAsNumber(\"StartPositionY\")",
- "GetArgumentAsNumber(\"EndPositionX\")",
- "GetArgumentAsNumber(\"EndPositionY\")",
- "GetArgumentAsNumber(\"Thickness\")"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "PrimitiveDrawing::OutlineColor"
- },
- "parameters": [
- "object",
- "\"255;0;0\""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "PrimitiveDrawing::FillColor"
- },
- "parameters": [
- "object",
- "\"255;0;0\""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ],
- "parameters": [
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Object painter for debug raycast",
- "longDescription": "",
- "name": "object",
- "optional": false,
- "supplementaryInformation": "PrimitiveDrawing::Drawer",
- "type": "objectList"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Thickness for line",
- "longDescription": "",
- "name": "Thickness",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Start Position X",
- "longDescription": "",
- "name": "StartPositionX",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "Start Position Y",
- "longDescription": "",
- "name": "StartPositionY",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "End Position X",
- "longDescription": "",
- "name": "EndPositionX",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- },
- {
- "codeOnly": false,
- "defaultValue": "",
- "description": "End Position Y",
- "longDescription": "",
- "name": "EndPositionY",
- "optional": false,
- "supplementaryInformation": "",
- "type": "expression"
- }
- ],
- "objectGroups": []
- },
- {
- "description": "Open inspector",
- "fullName": "Open inspector",
- "functionType": "Action",
- "name": "Open_inspector",
- "sentence": "Open inspector",
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "BuiltinCommonInstructions::Once"
- },
- "parameters": [],
- "subInstructions": []
- }
- ],
- "actions": [],
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::JsCode",
- "inlineCode": "if (typeof require !== \"undefined\") {\n const electron = require('electron'); \n if (typeof electron !== \"undefined\") { \n electron.remote.getCurrentWindow().webContents.openDevTools()\n }\n}",
- "parameterObjects": "",
- "useStrict": true
- }
- ]
- }
- ],
- "parameters": [],
- "objectGroups": []
- }
- ],
- "eventsBasedBehaviors": []
- }
- ],
- "externalLayouts": [],
- "externalSourceFiles": []
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement