mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"firstLayout": "","gdVersion": {"build": 97,"major": 4,"minor": 0,"revision": 0},"properties": {"folderProject": false,"linuxExecutableFilename": "","macExecutableFilename": "","orientation": "landscape","packageName": "com.example.gamename","projectFile": "C:\\Users\\Maciel\\Programacion\\gits\\GD\\Binaries\\Output\\Release_Windows\\Examples\\ObjectTimersTest.json","sizeOnStartupMode": "adaptWidth","useExternalSourceFiles": false,"version": "1.0.0","winExecutableFilename": "","winExecutableIconFile": "","name": "Project","author": "","windowWidth": 800,"windowHeight": 600,"latestCompilationDirectory": "","maxFPS": 60,"minFPS": 10,"verticalSync": false,"platformSpecificAssets": {},"loadingScreen": {"showGDevelopSplash": false},"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"},{"name": "TextObject"}],"platforms": [{"name": "GDevelop JS platform"}],"currentPlatform": "GDevelop JS platform"},"resources": {"resources": [{"alwaysLoaded": false,"file": "player.png","kind": "image","name": "player.png","smoothed": true,"userAdded": false},{"alwaysLoaded": false,"file": "Pea-Happy.png","kind": "image","name": "Pea-Happy.png","smoothed": true,"userAdded": false}],"resourceFolders": []},"objects": [],"objectsGroups": [],"variables": [],"layouts": [{"b": 30,"disableInputWhenNotFocused": true,"mangledName": "Scene","name": "Scene","oglFOV": 90,"oglZFar": 500,"oglZNear": 1,"r": 30,"standardSortMethod": false,"stopSoundsOnStartup": true,"title": "","v": 30,"uiSettings": {"grid": false,"gridB": 255,"gridG": 180,"gridHeight": 32,"gridOffsetX": 0,"gridOffsetY": 0,"gridR": 158,"gridWidth": 32,"snap": true,"windowMask": false,"zoomFactor": 0.847175},"objectsGroups": [],"variables": [],"instances": [{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Sprite","width": 0,"x": 556.402,"y": 101.694,"zOrder": 1,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "2"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Sprite","width": 0,"x": 65.3582,"y": 100.513,"zOrder": 1,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "0"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Sprite","width": 0,"x": 319.143,"y": 99.333,"zOrder": 1,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "1"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Sprite2","width": 0,"x": 568.206,"y": 396.792,"zOrder": 2,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "2"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Sprite2","width": 0,"x": 87.7857,"y": 395.612,"zOrder": 2,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "0"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Sprite2","width": 0,"x": 323.865,"y": 394.431,"zOrder": 2,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "1"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Counter2","width": 0,"x": 598.896,"y": 327.149,"zOrder": 3,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "2"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Counter2","width": 0,"x": 116.115,"y": 322.427,"zOrder": 3,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "0"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Counter2","width": 0,"x": 351.014,"y": 325.969,"zOrder": 3,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "1"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Counter","width": 0,"x": 604.798,"y": 52.1173,"zOrder": 4,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "2"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Counter","width": 0,"x": 111.394,"y": 43.8546,"zOrder": 4,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "0"}]},{"angle": 0,"customSize": false,"height": 0,"layer": "","locked": false,"name": "Counter","width": 0,"x": 367.539,"y": 48.5762,"zOrder": 4,"numberProperties": [],"stringProperties": [],"initialVariables": [{"name": "id","value": "1"}]}],"objects": [{"name": "Sprite","type": "Sprite","updateIfNotVisible": false,"variables": [],"behaviors": [],"animations": [{"name": "","useMultipleDirections": false,"directions": [{"looping": false,"timeBetweenFrames": 1,"sprites": [{"hasCustomCollisionMask": false,"image": "player.png","points": [],"originPoint": {"name": "origine","x": 0,"y": 0},"centerPoint": {"automatic": true,"name": "centre","x": 32,"y": 33},"customCollisionMask": [[{"x": 0,"y": 0},{"x": 64,"y": 0},{"x": 64,"y": 66},{"x": 0,"y": 66}]]}]}]}]},{"name": "Sprite2","type": "Sprite","updateIfNotVisible": false,"variables": [],"behaviors": [],"animations": [{"name": "","useMultipleDirections": false,"directions": [{"looping": false,"timeBetweenFrames": 1,"sprites": [{"hasCustomCollisionMask": false,"image": "Pea-Happy.png","points": [],"originPoint": {"name": "origine","x": 0,"y": 0},"centerPoint": {"automatic": true,"name": "centre","x": 18.5,"y": 18.5},"customCollisionMask": [[{"x": 0,"y": 0},{"x": 37,"y": 0},{"x": 37,"y": 37},{"x": 0,"y": 37}]]}]}]}]},{"bold": false,"italic": false,"name": "Counter","smoothed": true,"type": "TextObject::Text","underlined": false,"variables": [],"behaviors": [],"string": "0","font": "","characterSize": 48,"color": {"b": 220,"g": 220,"r": 220}},{"bold": false,"italic": false,"name": "Counter2","smoothed": true,"type": "TextObject::Text","underlined": false,"variables": [],"behaviors": [],"string": "0","font": "","characterSize": 48,"color": {"b": 220,"g": 220,"r": 220}}],"events": [{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Comment","color": {"b": 200,"g": 250,"r": 200,"textB": 0,"textG": 0,"textR": 0},"comment": "Increase the sprites size\nSet a random color_time variable for Sprite, it will be the time between each color switch\nStart the timers for Sprite and pause the timer for Sprite2","comment2": ""},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Standard","conditions": [{"type": {"inverted": false,"value": "DepartScene"},"parameters": [""],"subInstructions": []}],"actions": [{"type": {"inverted": false,"value": "ChangeScale"},"parameters": ["Sprite","=","2"],"subInstructions": []},{"type": {"inverted": false,"value": "ChangeScale"},"parameters": ["Sprite2","=","2"],"subInstructions": []},{"type": {"inverted": false,"value": "ModVarObjet"},"parameters": ["Sprite","color_time","=","(Random(29)+1)/10"],"subInstructions": []},{"type": {"inverted": false,"value": "ResetObjectTimer"},"parameters": ["Sprite","\"color\""],"subInstructions": []},{"type": {"inverted": false,"value": "ResetObjectTimer"},"parameters": ["Sprite","\"otherTimer\""],"subInstructions": []},{"type": {"inverted": false,"value": "PauseObjectTimer"},"parameters": ["Sprite2","\"counter\""],"subInstructions": []}],"events": []},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Comment","color": {"b": 200,"g": 250,"r": 200,"textB": 0,"textG": 0,"textR": 0},"comment": "When the timer value of Sprite2 is greater than the stored random value for it, tint it with a random color and reset the timer","comment2": ""},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Standard","conditions": [{"type": {"inverted": false,"value": "ObjectTimer"},"parameters": ["Sprite","\"color\"","Sprite.Variable(color_time)"],"subInstructions": []}],"actions": [{"type": {"inverted": false,"value": "ChangeColor"},"parameters": ["Sprite","ToString(Random(255)) + \";\" + ToString(Random(255)) + \";\" + ToString(Random(255))"],"subInstructions": []},{"type": {"inverted": false,"value": "ResetObjectTimer"},"parameters": ["Sprite","\"color\""],"subInstructions": []}],"events": []},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Comment","color": {"b": 200,"g": 250,"r": 200,"textB": 0,"textG": 0,"textR": 0},"comment": "When you do a click, reset the second timer of a random instance of Sprite","comment2": ""},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Standard","conditions": [{"type": {"inverted": false,"value": "SourisBouton"},"parameters": ["","Left"],"subInstructions": []},{"type": {"inverted": false,"value": "BuiltinCommonInstructions::Once"},"parameters": [],"subInstructions": []}],"actions": [{"type": {"inverted": false,"value": "AjoutHasard"},"parameters": ["","Sprite"],"subInstructions": []},{"type": {"inverted": false,"value": "ResetObjectTimer"},"parameters": ["Sprite","\"otherTimer\""],"subInstructions": []}],"events": [{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Comment","color": {"b": 200,"g": 250,"r": 200,"textB": 0,"textG": 0,"textR": 0},"comment": "And if you're over a Sprite2 instance, reset and unpause its counter timer","comment2": ""},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Standard","conditions": [{"type": {"inverted": false,"value": "SourisSurObjet"},"parameters": ["Sprite2","","",""],"subInstructions": []}],"actions": [{"type": {"inverted": false,"value": "ResetObjectTimer"},"parameters": ["Sprite2","\"counter\""],"subInstructions": []},{"type": {"inverted": false,"value": "UnPauseObjectTimer"},"parameters": ["Sprite2","\"counter\""],"subInstructions": []}],"events": []}]},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Comment","color": {"b": 200,"g": 250,"r": 200,"textB": 0,"textG": 0,"textR": 0},"comment": "When the Sprite2 counter has reached 5 seconds and it isn't paused, set a random scale for Sprite2 and pause its timer","comment2": ""},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Standard","conditions": [{"type": {"inverted": true,"value": "ObjectTimerPaused"},"parameters": ["Sprite2","\"counter\""],"subInstructions": []},{"type": {"inverted": false,"value": "ObjectTimer"},"parameters": ["Sprite2","\"counter\"","5"],"subInstructions": []}],"actions": [{"type": {"inverted": false,"value": "ChangeScale"},"parameters": ["Sprite2","=","(Random(39) + 1) / 10"],"subInstructions": []},{"type": {"inverted": false,"value": "PauseObjectTimer"},"parameters": ["Sprite2","\"counter\""],"subInstructions": []}],"events": []},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::Comment","color": {"b": 200,"g": 250,"r": 200,"textB": 0,"textG": 0,"textR": 0},"comment": "Update the text objects to draw the Sprite and Sprite2 timers current values, instances of Sprite/Sprite2 and text objects are linked through a variable \"id\"","comment2": ""},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::ForEach","object": "Sprite","conditions": [{"type": {"inverted": false,"value": "VarObjet"},"parameters": ["Counter","id","=","Sprite.Variable(id)"],"subInstructions": []}],"actions": [{"type": {"inverted": false,"value": "TextObject::String"},"parameters": ["Counter","=","ToString(floor(Sprite.ObjectTimerElapsedTime(\"otherTimer\")*10)/10)"],"subInstructions": []}],"events": []},{"disabled": false,"folded": false,"type": "BuiltinCommonInstructions::ForEach","object": "Sprite2","conditions": [{"type": {"inverted": false,"value": "VarObjet"},"parameters": ["Counter2","id","=","Sprite2.Variable(id)"],"subInstructions": []}],"actions": [{"type": {"inverted": false,"value": "TextObject::String"},"parameters": ["Counter2","=","ToString(floor(Sprite2.ObjectTimerElapsedTime(\"counter\")*10)/10)"],"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": [],"externalLayouts": [],"externalSourceFiles": []} |