Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "firstLayout": "",
- "gdVersion": {
- "build": 99,
- "major": 4,
- "minor": 0,
- "revision": 0
- },
- "properties": {
- "adaptGameResolutionAtRuntime": true,
- "folderProject": false,
- "orientation": "landscape",
- "packageName": "com.example.gamename",
- "projectUuid": "08a28cc2-8b09-4c03-a90f-1a3c6055bebc",
- "scaleMode": "linear",
- "sizeOnStartupMode": "adaptWidth",
- "useExternalSourceFiles": false,
- "version": "1.0.0",
- "name": "Simple parser",
- "author": "Arthur Pacaud (arthuro555)",
- "windowWidth": 800,
- "windowHeight": 600,
- "latestCompilationDirectory": "",
- "maxFPS": 60,
- "minFPS": 20,
- "verticalSync": false,
- "platformSpecificAssets": {},
- "loadingScreen": {
- "backgroundColor": 0,
- "backgroundFadeInDuration": 0.2,
- "backgroundImageResourceName": "",
- "gdevelopLogoStyle": "light",
- "logoAndProgressFadeInDuration": 0.2,
- "logoAndProgressLogoFadeInDelay": 0.2,
- "minDuration": 1.5,
- "progressBarColor": 16777215,
- "progressBarHeight": 20,
- "progressBarMaxWidth": 200,
- "progressBarMinWidth": 40,
- "progressBarWidthPercent": 30,
- "showGDevelopSplash": true,
- "showProgressBar": true
- },
- "extensionProperties": [],
- "platforms": [
- {
- "name": "GDevelop JS platform"
- }
- ],
- "currentPlatform": "GDevelop JS platform"
- },
- "resources": {
- "resources": [],
- "resourceFolders": []
- },
- "objects": [],
- "objectsGroups": [],
- "variables": [],
- "layouts": [
- {
- "b": 209,
- "disableInputWhenNotFocused": true,
- "mangledName": "New_32scene",
- "name": "New scene",
- "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,
- "gridType": "rectangular",
- "gridWidth": 32,
- "snap": true,
- "windowMask": false,
- "zoomFactor": 0.8665000000000008
- },
- "objectsGroups": [],
- "variables": [
- {
- "name": "i",
- "type": "number",
- "value": -1
- },
- {
- "name": "text",
- "type": "string",
- "value": ""
- },
- {
- "name": "state",
- "type": "string",
- "value": "identifier"
- },
- {
- "name": "definition",
- "type": "structure",
- "children": [
- {
- "name": "identifier",
- "type": "string",
- "value": ""
- },
- {
- "name": "value",
- "type": "string",
- "value": ""
- }
- ]
- }
- ],
- "instances": [
- {
- "angle": 0,
- "customSize": true,
- "height": 582,
- "layer": "",
- "locked": false,
- "name": "NewObject",
- "persistentUuid": "97c38bbd-7fc8-4e1d-9246-5c7c6a282f2f",
- "width": 776,
- "x": 14,
- "y": 11,
- "zOrder": 1,
- "numberProperties": [],
- "stringProperties": [],
- "initialVariables": []
- }
- ],
- "objects": [
- {
- "bold": false,
- "italic": false,
- "name": "NewObject",
- "smoothed": true,
- "tags": "",
- "type": "TextObject::Text",
- "underlined": false,
- "variables": [],
- "effects": [],
- "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": "ModVarSceneTxt"
- },
- "parameters": [
- "text",
- "=",
- "\"Name = Bulbasaur\" + NewLine() +\n\"InternalName = BULBASAUR\" + NewLine() +\n\"Type1 = GRASS\" + NewLine() +\n\"Type2 = POISON\" + NewLine()"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarScene"
- },
- "parameters": [
- "i",
- "=",
- "-1"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarSceneTxt"
- },
- "parameters": [
- "state",
- "=",
- "\"identifier\""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarSceneTxt"
- },
- "parameters": [
- "definition.identifier",
- "=",
- "\"\""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarSceneTxt"
- },
- "parameters": [
- "definition.value",
- "=",
- "\"\""
- ],
- "subInstructions": []
- }
- ],
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "For every character in the string, where `i` is the index of the character (the character can be obtained from the index using `StrAt(VariableString(text), Variable(i))`) ",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "infiniteLoopWarning": true,
- "type": "BuiltinCommonInstructions::While",
- "whileConditions": [
- {
- "type": {
- "inverted": false,
- "value": "VarScene"
- },
- "parameters": [
- "i",
- "<",
- "StrLength(VariableString(text))"
- ],
- "subInstructions": []
- }
- ],
- "conditions": [],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "ModVarScene"
- },
- "parameters": [
- "i",
- "+",
- "1"
- ],
- "subInstructions": []
- }
- ],
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "Ignore any whitespace",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "StrEqual"
- },
- "parameters": [
- "StrAt(VariableString(text), Variable(i))",
- "!=",
- "\" \""
- ],
- "subInstructions": []
- }
- ],
- "actions": [],
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "If not a special character, it is text.",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "StrEqual"
- },
- "parameters": [
- "StrAt(VariableString(text), Variable(i))",
- "!=",
- "\"=\""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "StrEqual"
- },
- "parameters": [
- "StrAt(VariableString(text), Variable(i))",
- "!=",
- "NewLine()"
- ],
- "subInstructions": []
- }
- ],
- "actions": [],
- "events": [
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "If we are before the equal, we are reading the identifier",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "VarSceneTxt"
- },
- "parameters": [
- "state",
- "=",
- "\"identifier\""
- ],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "ModVarSceneTxt"
- },
- "parameters": [
- "definition.identifier",
- "+",
- "StrAt(VariableString(text), Variable(i))"
- ],
- "subInstructions": []
- }
- ],
- "events": []
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "If we are after the equal, we are reading the value",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "VarSceneTxt"
- },
- "parameters": [
- "state",
- "=",
- "\"value\""
- ],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "ModVarSceneTxt"
- },
- "parameters": [
- "definition.value",
- "+",
- "StrAt(VariableString(text), Variable(i))"
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ]
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "If it is an equal. from now on we read the value not the identifier",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "StrEqual"
- },
- "parameters": [
- "StrAt(VariableString(text), Variable(i))",
- "=",
- "\"=\""
- ],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "ModVarSceneTxt"
- },
- "parameters": [
- "state",
- "=",
- "\"value\""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "A new line signifies the end of a definition, commit the one that was being written and clear the definition variable for the next definition",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [
- {
- "type": {
- "inverted": false,
- "value": "StrEqual"
- },
- "parameters": [
- "StrAt(VariableString(text), Variable(i))",
- "=",
- "NewLine()"
- ],
- "subInstructions": []
- }
- ],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "ModVarSceneTxt"
- },
- "parameters": [
- "state",
- "=",
- "\"identifier\""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarSceneTxt"
- },
- "parameters": [
- "result[VariableString(definition.identifier)]",
- "=",
- "VariableString(definition.value)"
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarSceneTxt"
- },
- "parameters": [
- "definition.identifier",
- "=",
- "\"\""
- ],
- "subInstructions": []
- },
- {
- "type": {
- "inverted": false,
- "value": "ModVarSceneTxt"
- },
- "parameters": [
- "definition.value",
- "=",
- "\"\""
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ]
- }
- ]
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Comment",
- "color": {
- "b": 109,
- "g": 230,
- "r": 255,
- "textB": 0,
- "textG": 0,
- "textR": 0
- },
- "comment": "Display results",
- "comment2": ""
- },
- {
- "disabled": false,
- "folded": false,
- "type": "BuiltinCommonInstructions::Standard",
- "conditions": [],
- "actions": [
- {
- "type": {
- "inverted": false,
- "value": "TextObject::String"
- },
- "parameters": [
- "NewObject",
- "=",
- "ToJSON(result)"
- ],
- "subInstructions": []
- }
- ],
- "events": []
- }
- ]
- }
- ],
- "layers": [
- {
- "ambientLightColorB": 32,
- "ambientLightColorG": 0,
- "ambientLightColorR": 0,
- "followBaseLayerCamera": false,
- "isLightingLayer": false,
- "name": "",
- "visibility": true,
- "cameras": [
- {
- "defaultSize": true,
- "defaultViewport": true,
- "height": 0,
- "viewportBottom": 1,
- "viewportLeft": 0,
- "viewportRight": 1,
- "viewportTop": 0,
- "width": 0
- }
- ],
- "effects": []
- }
- ],
- "behaviorsSharedData": []
- }
- ],
- "externalEvents": [],
- "eventsFunctionsExtensions": [],
- "externalLayouts": [],
- "externalSourceFiles": []
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement