-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.js
2 lines (2 loc) · 45.5 KB
/
data.js
1
2
gdjs.projectData = {"firstLayout":"","gdVersion":{"build":99,"major":4,"minor":0,"revision":0},"properties":{"adaptGameResolutionAtRuntime":true,"antialiasingMode":"MSAA","antialisingEnabledOnMobile":false,"folderProject":false,"orientation":"portrait","packageName":"com.example.JoystickLesson","pixelsRounding":false,"projectUuid":"642b8560-3a37-4fa2-b776-153e3e503192","scaleMode":"linear","sizeOnStartupMode":"","templateSlug":"","useExternalSourceFiles":false,"version":"1.0.0","name":"Joystick Lesson","description":"A game example where you add a joystick to control the movement of a ship in space.","author":"","windowWidth":720,"windowHeight":1280,"latestCompilationDirectory":"/Users/barandenizdogan/Developer/HTML5 Game Demo/Outputs","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.0,"progressBarMaxWidth":200.0,"progressBarMinWidth":40.0,"progressBarWidthPercent":30.0,"showGDevelopSplash":true,"showProgressBar":true},"watermark":{"placement":"bottom-left","showWatermark":true},"authorIds":["5qDnrItDZRYyXPPXlVScvKoT36C2"],"authorUsernames":["barandenizdogan"],"categories":[],"playableDevices":[],"extensionProperties":[],"platforms":[{"name":"GDevelop JS platform"}],"currentPlatform":"GDevelop JS platform"},"resources":{"resources":[{"alwaysLoaded":false,"file":"Big Brown Meteor (1).png","kind":"image","metadata":"","name":"Big Brown Meteor (1).png","smoothed":true,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Space Shooter/PNG/Meteors/ae6802c87f6e3e4739b6260b23e4546582daad3fb803446401fbec2bc057f297_Big Brown Meteor (1).png","name":"Big Brown Meteor (1).png"}},{"alwaysLoaded":false,"file":"Big Grey Meteor (1).png","kind":"image","metadata":"","name":"Big Grey Meteor (1).png","smoothed":true,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Space Shooter/PNG/Meteors/821659c429013730ce54bc7259612b06fcaf5563cbed3ce63d0ee73e4de202cd_Big Grey Meteor (1).png","name":"Big Grey Meteor (1).png"}},{"alwaysLoaded":false,"file":"Medium Brown Meteor (1).png","kind":"image","metadata":"","name":"Medium Brown Meteor (1).png","smoothed":true,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Space Shooter/PNG/Meteors/70f274ae740166dbf45e9131bbaee2b5c18034303c527fccaed64aaedec2f1c1_Medium Brown Meteor (1).png","name":"Medium Brown Meteor (1).png"}},{"alwaysLoaded":false,"file":"Orange playerShip (3).png","kind":"image","metadata":"","name":"Orange playerShip (3).png","smoothed":true,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Space Shooter/PNG/5abeaf795b2d7c342a06be4ae70a6f484bf445f6884d7c456d4f6be66eab8f3a_Orange playerShip (3).png","name":"Orange playerShip (3).png"}},{"alwaysLoaded":false,"file":"Enemy_Spawn_Location.png","kind":"image","metadata":"","name":"Enemy_Spawn_Location.png","smoothed":true,"userAdded":false},{"alwaysLoaded":false,"file":"tiled_black space.png","kind":"image","metadata":"","name":"tiled_black space.png","smoothed":true,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Space Shooter/Backgrounds/82e24c48618660952ceb6cede5c9917ceeb4371c9e971f4a49fb43689d045d89_tiled_black space.png","name":"tiled_black space.png"}},{"alwaysLoaded":false,"file":"tiled_Starry Background Stars 2.png","kind":"image","metadata":"","name":"tiled_Starry Background Stars 2.png","smoothed":false,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/FoozleCC/Void Collection/Environment Pack/Backgrounds/1dd0ee3b6ee4b0545ef9b3723a60ee4a10bb29bfd0fdd4845c460ba69bec4ce0_tiled_Starry Background Stars 2.png","name":"tiled_Starry Background Stars 2.png"}},{"file":"Crash.wav","kind":"audio","metadata":"{\"extension\":\".wav\",\"jfxr\":{\"data\":\"{\\\"_version\\\":1,\\\"_name\\\":\\\"Jump 1\\\",\\\"_locked\\\":[],\\\"sampleRate\\\":44100,\\\"attack\\\":0,\\\"sustain\\\":0.13,\\\"sustainPunch\\\":70,\\\"decay\\\":0.22,\\\"tremoloDepth\\\":0,\\\"tremoloFrequency\\\":5,\\\"frequency\\\":7200,\\\"frequencySweep\\\":-2600,\\\"frequencyDeltaSweep\\\":-2200,\\\"repeatFrequency\\\":0,\\\"frequencyJump1Onset\\\":33,\\\"frequencyJump1Amount\\\":-5,\\\"frequencyJump2Onset\\\":66,\\\"frequencyJump2Amount\\\":0,\\\"harmonics\\\":0,\\\"harmonicsFalloff\\\":0.53,\\\"waveform\\\":\\\"pinknoise\\\",\\\"interpolateNoise\\\":true,\\\"vibratoDepth\\\":0,\\\"vibratoFrequency\\\":0,\\\"squareDuty\\\":55,\\\"squareDutySweep\\\":0,\\\"flangerOffset\\\":5,\\\"flangerOffsetSweep\\\":0,\\\"bitCrush\\\":16,\\\"bitCrushSweep\\\":-1,\\\"lowPassCutoff\\\":22050,\\\"lowPassCutoffSweep\\\":0,\\\"highPassCutoff\\\":0,\\\"highPassCutoffSweep\\\":-900,\\\"compression\\\":1,\\\"normalization\\\":true,\\\"amplification\\\":100}\",\"name\":\"Crash\"},\"localFilePath\":\"assets/Crash.wav\"}","name":"Crash","preloadAsMusic":false,"preloadAsSound":true,"preloadInCache":false,"userAdded":true},{"alwaysLoaded":false,"file":"Flat light joystick border.png","kind":"image","metadata":"","name":"Flat light joystick border.png","smoothed":true,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Multitouch joysticks/ab72105ef4577d93b002f4b6f9b6095f7db7e346da37bcffa2977edf61ac231d_Flat light joystick border.png","name":"Flat light joystick border.png"}},{"alwaysLoaded":false,"file":"Flat light joystick thumb.png","kind":"image","metadata":"","name":"Flat light joystick thumb.png","smoothed":true,"userAdded":false,"origin":{"identifier":"https://asset-resources.gdevelop.io/public-resources/Multitouch joysticks/0acabda67390a4e4aa8b1023454400432c202efb1a525070784c756f61de7e81_Flat light joystick thumb.png","name":"Flat light joystick thumb.png"}}],"resourceFolders":[]},"objects":[],"objectsFolderStructure":{"folderName":"__ROOT"},"objectsGroups":[],"variables":[],"layouts":[{"b":209,"disableInputWhenNotFocused":true,"mangledName":"GameScene","name":"GameScene","r":209,"standardSortMethod":true,"stopSoundsOnStartup":true,"title":"","v":209,"uiSettings":{"grid":true,"gridType":"rectangular","gridWidth":32.0,"gridHeight":32.0,"gridOffsetX":0.0,"gridOffsetY":0.0,"gridColor":10401023.0,"gridAlpha":0.8,"snap":true,"zoomFactor":0.3866990209613917,"windowMask":false},"objectsGroups":[],"variables":[],"instances":[{"angle":0.0,"customSize":true,"height":1280.0,"layer":"","name":"Walls","persistentUuid":"b1673ac2-aa53-4b3b-8746-589e30d25f40","width":64.0,"x":720.0,"y":0.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"height":1280.0,"layer":"","name":"Walls","persistentUuid":"d00e0c03-99cb-48f5-987e-d7acbbd91f68","width":64.0,"x":-64.0,"y":0.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"height":64.0,"layer":"","name":"Walls","persistentUuid":"4668bfcb-cf7e-4a8b-91c8-be6e2cc70c08","width":848.0,"x":-64.0,"y":-64.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"height":64.0,"layer":"","name":"Walls","persistentUuid":"e26dccc7-cf6d-46c1-ad7d-e9ca7c1de527","width":848.0,"x":-64.0,"y":1280.0,"zOrder":2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"height":1344.0,"layer":"","name":"BlackSpace","persistentUuid":"57a3ecf4-327c-414d-bcf9-46d386cb2241","width":784.0,"x":-32.0,"y":-32.0,"zOrder":-2,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":true,"height":1344.0,"layer":"","name":"StarryBackgroundStars2","persistentUuid":"b7046053-b990-498a-ad8d-8b6b8648ae3c","width":784.0,"x":-32.0,"y":-32.0,"zOrder":-1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"layer":"","name":"Trail","persistentUuid":"f0281bcf-f9c4-4b83-ba85-f641a4edaef4","width":0.0,"x":960.0,"y":576.0,"zOrder":1,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"layer":"","name":"OrangePlayerShip3","persistentUuid":"95ae9a18-9c57-4734-b713-f580de816be6","width":0.0,"x":352.0,"y":896.0,"zOrder":7,"numberProperties":[],"stringProperties":[],"initialVariables":[]},{"angle":0.0,"customSize":false,"height":0.0,"keepRatio":true,"layer":"Interface","name":"FlatLightJoystick","persistentUuid":"3fc8d579-0784-49b6-8c2a-464dcc625eb0","width":0.0,"x":352.0,"y":1152.0,"zOrder":8,"numberProperties":[],"stringProperties":[],"initialVariables":[]}],"objects":[{"adaptCollisionMaskAutomatically":true,"assetStoreId":"911c6f50a4c05507c6fc1df967493f61a7ce9bad9e144cec92f6ff32be42749a","name":"BigBrownMeteor1","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"}],"animations":[{"name":"","useMultipleDirections":false,"directions":[{"looping":true,"timeBetweenFrames":0.025,"sprites":[{"hasCustomCollisionMask":true,"image":"Big Brown Meteor (1).png","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":101.0,"y":0.0},{"x":101.0,"y":83.0},{"x":0.0,"y":83.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"ca0633aaa11c9973eff808d10322e7c3142144c53b0c4747cd55b303acdc81f6","name":"BigGreyMeteor1","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"}],"animations":[{"name":"","useMultipleDirections":false,"directions":[{"looping":true,"timeBetweenFrames":0.025,"sprites":[{"hasCustomCollisionMask":true,"image":"Big Grey Meteor (1).png","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":0.0},{"x":101.0,"y":0.0},{"x":101.0,"y":83.0},{"x":0.0,"y":83.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":true,"assetStoreId":"829045c7d03f177ede71c000a4fc81b0ddbdc73a91144b7fa32ad0b557e4b020","name":"MediumBrownMeteor1","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"}],"animations":[{"name":"","useMultipleDirections":false,"directions":[{"looping":true,"timeBetweenFrames":0.025,"sprites":[{"hasCustomCollisionMask":true,"image":"Medium Brown Meteor (1).png","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":0.0,"y":1.0},{"x":43.0,"y":1.0},{"x":43.0,"y":43.0},{"x":0.0,"y":43.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":false,"assetStoreId":"2dfe5abcf8449b36588904833bd4d48556da3e9cb3770285e4f8aa6ad3bd3b96","name":"OrangePlayerShip3","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior","acceleration":200.0,"deceleration":900.0,"maxSpeed":300.0,"allowDiagonals":true,"angleOffset":0.0,"angularMaxSpeed":180.0,"customIsometryAngle":30.0,"ignoreDefaultControls":false,"movementAngleOffset":0.0,"rotateObject":false,"viewpoint":"TopDown"},{"name":"TopDownMultitouchMapper","type":"SpriteMultitouchJoystick::TopDownMultitouchMapper","TopDownMovement":"TopDownMovement","ControllerIdentifier":1.0,"JoystickIdentifier":"Primary","StickMode":"360°"}],"animations":[{"name":"","useMultipleDirections":false,"directions":[{"looping":true,"timeBetweenFrames":0.025,"sprites":[{"hasCustomCollisionMask":true,"image":"Orange playerShip (3).png","points":[],"originPoint":{"name":"origine","x":49.0,"y":70.6128},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[[{"x":42.0,"y":5.0},{"x":55.0,"y":5.0},{"x":95.0,"y":65.0},{"x":3.0,"y":65.0}]]}]}]}]},{"adaptCollisionMaskAutomatically":false,"assetStoreId":"","name":"Walls","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"}],"animations":[{"name":"","useMultipleDirections":false,"directions":[{"looping":false,"timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":false,"image":"Enemy_Spawn_Location.png","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[]}]}]}]},{"assetStoreId":"2d701679df0e067e63e657f3a7de8b0c076c1c0db19e7c6070c186b28a611df2","height":128.0,"name":"BlackSpace","texture":"tiled_black space.png","type":"TiledSpriteObject::TiledSprite","width":128.0,"variables":[],"effects":[],"behaviors":[{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"}]},{"assetStoreId":"c20fe4657b50f46f901b666ddae13412211ef388c101136bacecd5bee34520b4","height":128.0,"name":"StarryBackgroundStars2","texture":"tiled_Starry Background Stars 2.png","type":"TiledSpriteObject::TiledSprite","width":128.0,"variables":[],"effects":[],"behaviors":[{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"}]},{"additive":false,"assetStoreId":"","destroyWhenNoParticles":true,"emitterAngleA":0.0,"emitterAngleB":0.0,"emitterForceMax":250.0,"emitterForceMin":175.0,"flow":30.0,"jumpForwardInTimeOnCreation":0.0,"maxParticleNb":300,"name":"Trail","particleAlpha1":255.0,"particleAlpha2":0.0,"particleAlphaRandomness1":0.0,"particleAlphaRandomness2":0.0,"particleAngle1":0.0,"particleAngle2":0.0,"particleAngleRandomness1":0.0,"particleAngleRandomness2":0.0,"particleBlue1":68.0,"particleBlue2":87.0,"particleGravityX":0.0,"particleGravityY":0.0,"particleGreen1":239.0,"particleGreen2":87.0,"particleLifeTimeMax":1.0,"particleLifeTimeMin":0.5,"particleRed1":253.0,"particleRed2":87.0,"particleSize1":100.0,"particleSize2":20.0,"particleSizeRandomness1":0.0,"particleSizeRandomness2":0.0,"rendererParam1":10.0,"rendererParam2":1.0,"rendererType":"Point","tank":-1.0,"textureParticleName":"","type":"ParticleSystem::ParticleEmitter","zoneRadius":10.0,"variables":[],"effects":[],"behaviors":[{"name":"Effect","type":"EffectCapability::EffectBehavior"}]},{"assetStoreId":"c7a381f15f0bb07adc63d78850702df44e8328a15db1ecb10ca1503491ed22a0","name":"FlatLightJoystick","type":"SpriteMultitouchJoystick::SpriteMultitouchJoystick","variables":[],"effects":[],"behaviors":[{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"}],"content":{},"childrenContent":{"Border":{"adaptCollisionMaskAutomatically":false,"updateIfNotVisible":false,"animations":[{"name":"Idle","useMultipleDirections":false,"directions":[{"looping":false,"timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":false,"image":"Flat light joystick border.png","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[]}]}]}]},"Thumb":{"adaptCollisionMaskAutomatically":false,"updateIfNotVisible":false,"animations":[{"name":"Idle","useMultipleDirections":false,"directions":[{"looping":false,"timeBetweenFrames":0.08,"sprites":[{"hasCustomCollisionMask":false,"image":"Flat light joystick thumb.png","points":[],"originPoint":{"name":"origine","x":0.0,"y":0.0},"centerPoint":{"automatic":true,"name":"centre","x":0.0,"y":0.0},"customCollisionMask":[]}]}]}]}}}],"objectsFolderStructure":{"folderName":"__ROOT"},"events":[],"layers":[{"ambientLightColorB":0,"ambientLightColorG":22239848,"ambientLightColorR":16,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":0.1,"cameraType":"perspective","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"","renderingType":"","visibility":true,"cameras":[{"defaultSize":true,"defaultViewport":true,"height":0.0,"viewportBottom":1.0,"viewportLeft":0.0,"viewportRight":1.0,"viewportTop":0.0,"width":0.0}],"effects":[]},{"ambientLightColorB":200,"ambientLightColorG":200,"ambientLightColorR":200,"camera3DFarPlaneDistance":10000.0,"camera3DFieldOfView":45.0,"camera3DNearPlaneDistance":3.0,"cameraType":"","followBaseLayerCamera":false,"isLightingLayer":false,"isLocked":false,"name":"Interface","renderingType":"","visibility":true,"cameras":[],"effects":[]}],"behaviorsSharedData":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"},{"name":"TopDownMovement","type":"TopDownMovementBehavior::TopDownMovementBehavior"},{"name":"TopDownMultitouchMapper","type":"SpriteMultitouchJoystick::TopDownMultitouchMapper"}],"usedResources":[{"name":"Big Brown Meteor (1).png"},{"name":"Big Grey Meteor (1).png"},{"name":"Crash"},{"name":"Enemy_Spawn_Location.png"},{"name":"Flat light joystick border.png"},{"name":"Flat light joystick thumb.png"},{"name":"Medium Brown Meteor (1).png"},{"name":"Orange playerShip (3).png"},{"name":"tiled_Starry Background Stars 2.png"},{"name":"tiled_black space.png"}]}],"externalEvents":[],"eventsFunctionsExtensions":[{"author":"","category":"Input","extensionNamespace":"","fullName":"Multitouch joystick and buttons (sprite)","helpPath":"/objects/multitouch-joystick","iconUrl":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPGNpcmNsZSBjbGFzcz0ic3QwIiBjeD0iMTYiIGN5PSIxNiIgcj0iMTMiLz4NCjxwb2x5bGluZSBjbGFzcz0ic3QwIiBwb2ludHM9IjI4LjQsMTIgMjAsMTIgMjAsMy42ICIvPg0KPHBvbHlsaW5lIGNsYXNzPSJzdDAiIHBvaW50cz0iMjAsMjguNCAyMCwyMCAyOC40LDIwICIvPg0KPHBvbHlsaW5lIGNsYXNzPSJzdDAiIHBvaW50cz0iMy42LDIwIDEyLDIwIDEyLDI4LjQgIi8+DQo8cG9seWxpbmUgY2xhc3M9InN0MCIgcG9pbnRzPSIxMiwzLjYgMTIsMTIgMy42LDEyICIvPg0KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIxNiw2IDE2LjcsNyAxNS4zLDcgIi8+DQo8cG9seWdvbiBjbGFzcz0ic3QwIiBwb2ludHM9IjE2LDI2IDE1LjMsMjUgMTYuNywyNSAiLz4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iNiwxNiA3LDE1LjMgNywxNi43ICIvPg0KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIyNiwxNiAyNSwxNi43IDI1LDE1LjMgIi8+DQo8L3N2Zz4NCg==","name":"SpriteMultitouchJoystick","previewIconUrl":"https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Videogames/Videogames_controller_joystick_arrows_direction.svg","shortDescription":"Joysticks or buttons for touchscreens.","version":"1.2.2","description":["Multitouch joysticks can be used the same way as physical gamepads:","- 4 or 8 directions","- Analogus pads","- Player selection","- Controls mapping for top-down movement and platformer characters","","There are ready-to-use joysticks in the asset-store [multitouch joysticks pack](https://editor.gdevelop.io/?initial-dialog=asset-store&asset-pack=multitouch-joysticks-multitouch-joysticks)."],"tags":["multitouch","joystick","thumbstick","controller","touchscreen","twin stick","shooter","virtual","platformer","platform","top-down"],"authorIds":["gqDaZjCfevOOxBYkK6zlhtZnXCg1","1OgYzWp5UeVPbiWGJwI6vqfgZLC3","v0YRpdAnIucZFgiRCCecqVnGKno2","IWykYNRvhCZBN3vEgKEbBPOR3Oc2"],"dependencies":[],"eventsFunctions":[{"description":"Check if a button is pressed on a gamepad.","fullName":"Multitouch controller button pressed","functionType":"Condition","name":"IsButtonPressed","sentence":"Button _PARAM2_ of multitouch controller _PARAM1_ is pressed","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarSceneTxt"},"parameters":["__MultitouchJoystick.Controllers[GetArgumentAsNumber(\"ControllerIdentifier\")].Buttons[GetArgumentAsString(\"Button\")].State","=","\"Pressed\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Button name","name":"Button","supplementaryInformation":"[\"A\",\"CROSS\",\"B\",\"CIRCLE\",\"X\",\"SQUARE\",\"Y\",\"TRIANGLE\",\"LB\",\"L1\",\"RB\",\"R1\",\"LT\",\"L2\",\"RT\",\"R2\",\"UP\",\"DOWN\",\"LEFT\",\"RIGHT\",\"BACK\",\"SHARE\",\"START\",\"OPTIONS\",\"CLICK_STICK_LEFT\",\"CLICK_STICK_RIGHT\",\"PS_BUTTON\",\"CLICK_TOUCHPAD\"]","type":"string"}],"objectGroups":[]},{"description":"Check if a button is released on a gamepad.","fullName":"Multitouch controller button released","functionType":"Condition","name":"IsButtonReleased","sentence":"Button _PARAM2_ of multitouch controller _PARAM1_ is released","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"VarSceneTxt"},"parameters":["__MultitouchJoystick.Controllers[GetArgumentAsNumber(\"ControllerIdentifier\")].Buttons[GetArgumentAsString(\"Button\")].State","=","\"Released\""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Button name","name":"Button","supplementaryInformation":"[\"A\",\"CROSS\",\"B\",\"CIRCLE\",\"X\",\"SQUARE\",\"Y\",\"TRIANGLE\",\"LB\",\"L1\",\"RB\",\"R1\",\"LT\",\"L2\",\"RT\",\"R2\",\"UP\",\"DOWN\",\"LEFT\",\"RIGHT\",\"BACK\",\"SHARE\",\"START\",\"OPTIONS\",\"CLICK_STICK_LEFT\",\"CLICK_STICK_RIGHT\",\"PS_BUTTON\",\"CLICK_TOUCHPAD\"]","type":"string"}],"objectGroups":[]},{"description":"Change a button state for a multitouch controller.","fullName":"Button state","functionType":"Action","name":"SetButtonState","private":true,"sentence":"Mark _PARAM2_ button as _PARAM3_ for multitouch controller _PARAM1_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"ModVarSceneTxt"},"parameters":["__MultitouchJoystick.Controllers[GetArgumentAsNumber(\"ControllerIdentifier\")].Buttons[GetArgumentAsString(\"Button\")].State","=","GetArgumentAsString(\"ButtonState\")"]}]}],"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Button name","name":"Button","type":"string"},{"description":"Button state","name":"ButtonState","supplementaryInformation":"[\"Idle\",\"Pressed\",\"Released\"]","type":"stringWithSelector"}],"objectGroups":[]},{"description":"Change the dead zone radius of a joystick. The deadzone is an area for which movement on sticks won't be taken into account (instead, the stick will be considered as not moved).","fullName":"Dead zone radius","functionType":"Action","name":"SetDeadZone","private":true,"sentence":"Change the dead zone of multitouch joystick _PARAM2_ of multitouch controller _PARAM1_ to _PARAM3_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"ModVarScene"},"parameters":["__MultitouchJoystick.Controllers[GetArgumentAsNumber(\"ControllerIdentifier\")].Joystick[GetArgumentAsString(\"JoystickIdentifier\")].DeadZone","=","GetArgumentAsNumber(\"DeadZoneRadius\")"]}]}],"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","type":"string"},{"description":"Dead zone radius","name":"DeadZoneRadius","supplementaryInformation":"[]","type":"expression"}],"objectGroups":[]},{"description":"Return the dead zone radius of a joystick. The deadzone is an area for which movement on sticks won't be taken into account (instead, the stick will be considered as not moved).","fullName":"Dead zone radius","functionType":"Expression","name":"DeadZone","private":true,"sentence":"Change multitouch joystick _PARAM2_ of multitouch controller _PARAM1_ dead zone to _PARAM3_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["Variable(__MultitouchJoystick.Controllers[GetArgumentAsNumber(\"ControllerIdentifier\")].Joystick[GetArgumentAsString(\"JoystickIdentifier\")].DeadZone)"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","type":"string"}],"objectGroups":[]},{"description":"the direction index (left = 1, bottom = 1, right = 2, top = 3) for an angle (in degrees).","fullName":"Angle to 4-way index","functionType":"ExpressionAndCondition","name":"AngleTo4Way","private":true,"sentence":"The angle _PARAM1_ 4-way index","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["mod(round(GetArgumentAsNumber(\"Angle\") * 4 / 360), 4)"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Angle","name":"Angle","type":"expression"}],"objectGroups":[]},{"description":"the direction index (left = 1, bottom-left = 1... top-left = 7) for an angle (in degrees).","fullName":"Angle to 8-way index","functionType":"ExpressionAndCondition","name":"AngleTo8Way","private":true,"sentence":"The angle _PARAM1_ 8-way index","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["mod(round(GetArgumentAsNumber(\"Angle\") * 8 / 360), 8)"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Angle","name":"Angle","type":"expression"}],"objectGroups":[]},{"description":"Check if angle is in a given direction.","fullName":"Angle 4-way direction","functionType":"Condition","name":"IsAngleIn4WayDirection","private":true,"sentence":"The angle _PARAM1_ is the 4-way direction _PARAM2_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"Right\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo4Way"},"parameters":["","=","0","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"Down\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo4Way"},"parameters":["","=","1","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"Left\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo4Way"},"parameters":["","=","2","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"Up\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo4Way"},"parameters":["","=","3","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Angle","name":"Angle","type":"expression"},{"description":"Direction","name":"Direction","supplementaryInformation":"[\"Up\",\"Down\",\"Left\",\"Right\"]","type":"stringWithSelector"}],"objectGroups":[]},{"description":"Check if angle is in a given direction.","fullName":"Angle 8-way direction","functionType":"Condition","name":"IsAngleIn8WayDirection","private":true,"sentence":"The angle _PARAM1_ is the 8-way direction _PARAM2_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"Right\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo8Way"},"parameters":["","=","0","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"DownRight\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo8Way"},"parameters":["","=","1","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"Down\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo8Way"},"parameters":["","=","2","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"DownLeft\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo8Way"},"parameters":["","=","3","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"Left\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo8Way"},"parameters":["","=","4","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"UpLeft\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo8Way"},"parameters":["","=","5","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"Up\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo8Way"},"parameters":["","=","6","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"BuiltinCommonInstructions::CompareStrings"},"parameters":["GetArgumentAsString(\"Direction\")","=","\"UpRight\""]},{"type":{"value":"SpriteMultitouchJoystick::AngleTo8Way"},"parameters":["","=","7","GetArgumentAsNumber(\"Angle\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Angle","name":"Angle","type":"expression"},{"description":"Direction","name":"Direction","supplementaryInformation":"[\"Up\",\"Down\",\"Left\",\"Right\",\"UpLeft\",\"UpRight\",\"DownLeft\",\"DownRight\"]","type":"stringWithSelector"}],"objectGroups":[]},{"description":"Check if joystick is pushed in a given direction.","fullName":"Joystick pushed in a direction (4-way)","functionType":"Condition","name":"IsDirectionPushed4Way","sentence":"Joystick _PARAM2_ of multitouch controller _PARAM1_ is pushed in direction _PARAM3_","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Make sure the joystick has moved from center"},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SpriteMultitouchJoystick::JoystickForce"},"parameters":["",">","SpriteMultitouchJoystick::DeadZone(GetArgumentAsNumber(\"ControllerIdentifier\"), GetArgumentAsString(\"JoystickIdentifier\"))","GetArgumentAsNumber(\"ControllerIdentifier\")","GetArgumentAsString(\"JoystickIdentifier\")",""]},{"type":{"value":"SpriteMultitouchJoystick::IsAngleIn4WayDirection"},"parameters":["","SpriteMultitouchJoystick::JoystickAngle(GetArgumentAsNumber(\"ControllerIdentifier\"), GetArgumentAsString(\"JoystickIdentifier\"))","GetArgumentAsString(\"Direction\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","supplementaryInformation":"[\"Primary\",\"Secondary\"]","type":"stringWithSelector"},{"description":"Direction","name":"Direction","supplementaryInformation":"[\"Up\",\"Down\",\"Left\",\"Right\"]","type":"stringWithSelector"}],"objectGroups":[]},{"description":"Check if joystick is pushed in a given direction.","fullName":"Joystick pushed in a direction (8-way)","functionType":"Condition","name":"IsDirectionPushed8Way","sentence":"Joystick _PARAM2_ of multitouch controller _PARAM1_ is pushed in direction _PARAM3_","events":[{"type":"BuiltinCommonInstructions::Comment","color":{"b":109,"g":230,"r":255,"textB":0,"textG":0,"textR":0},"comment":"Make sure the joystick has moved from center"},{"type":"BuiltinCommonInstructions::Standard","conditions":[{"type":{"value":"SpriteMultitouchJoystick::JoystickForce"},"parameters":["",">","SpriteMultitouchJoystick::DeadZone(GetArgumentAsNumber(\"ControllerIdentifier\"), GetArgumentAsString(\"JoystickIdentifier\"))","GetArgumentAsNumber(\"ControllerIdentifier\")","GetArgumentAsString(\"JoystickIdentifier\")",""]},{"type":{"value":"SpriteMultitouchJoystick::IsAngleIn8WayDirection"},"parameters":["","SpriteMultitouchJoystick::JoystickAngle(GetArgumentAsNumber(\"ControllerIdentifier\"), GetArgumentAsString(\"JoystickIdentifier\"))","GetArgumentAsString(\"Direction\")",""]}],"actions":[{"type":{"value":"SetReturnBoolean"},"parameters":["True"]}]}],"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","supplementaryInformation":"[\"Primary\",\"Secondary\"]","type":"stringWithSelector"},{"description":"Direction","name":"Direction","supplementaryInformation":"[\"Up\",\"Down\",\"Left\",\"Right\",\"UpLeft\",\"UpRight\",\"DownLeft\",\"DownRight\"]","type":"stringWithSelector"}],"objectGroups":[]},{"description":"the percentage the thumb has been pulled away from the joystick center (Range: 0 to 1).","fullName":"Joystick force (deprecated)","functionType":"ExpressionAndCondition","name":"JoystickForce","private":true,"sentence":"Joystick _PARAM2_ of multitouch controller _PARAM1_ force","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["SpriteMultitouchJoystick::StickForce(GetArgumentAsNumber(\"ControllerIdentifier\"), GetArgumentAsString(\"JoystickIdentifier\"))"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","supplementaryInformation":"[\"Primary\",\"Secondary\"]","type":"stringWithSelector"}],"objectGroups":[]},{"description":"the force of multitouch contoller stick (from 0 to 1).","fullName":"Stick force","functionType":"ExpressionAndCondition","name":"StickForce","sentence":"multitouch controller _PARAM1_ _PARAM2_ stick force","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["Variable(__MultitouchJoystick.Controllers[GetArgumentAsNumber(\"ControllerIdentifier\")].Joystick[GetArgumentAsString(\"JoystickIdentifier\")].Force)"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Stick name","name":"JoystickIdentifier","supplementaryInformation":"[\"Primary\",\"Secondary\"]","type":"stringWithSelector"}],"objectGroups":[]},{"description":"Change the percentage the thumb has been pulled away from the joystick center (Range: 0 to 1).","fullName":"Joystick force","functionType":"Action","name":"SetJoystickForce","private":true,"sentence":"Change the force of the joystick _PARAM2_ of multitouch controller _PARAM1_ to _PARAM3_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"ModVarScene"},"parameters":["__MultitouchJoystick.Controllers[GetArgumentAsNumber(\"ControllerIdentifier\")].Joystick[GetArgumentAsString(\"JoystickIdentifier\")].Force","=","GetArgumentAsNumber(\"Value\")"]}]}],"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","type":"string"},{"description":"Value","name":"Value","type":"expression"}],"objectGroups":[]},{"description":"Return the angle the joystick is pointing towards (Range: -180 to 180).","fullName":"Joystick angle (deprecated)","functionType":"Expression","name":"JoystickAngle","private":true,"sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["SpriteMultitouchJoystick::StickAngle(GetArgumentAsNumber(\"ControllerIdentifier\"), GetArgumentAsString(\"JoystickIdentifier\"))"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","supplementaryInformation":"[\"Primary\",\"Secondary\"]","type":"stringWithSelector"}],"objectGroups":[]},{"description":"Return the angle the multitouch controller stick is pointing towards (Range: -180 to 180).","fullName":"Stick angle","functionType":"Expression","name":"StickAngle","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["Variable(__MultitouchJoystick.Controllers[GetArgumentAsNumber(\"ControllerIdentifier\")].Joystick[GetArgumentAsString(\"JoystickIdentifier\")].Angle)"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","supplementaryInformation":"[\"Primary\",\"Secondary\"]","type":"stringWithSelector"}],"objectGroups":[]},{"description":"Change the angle the joystick is pointing towards (Range: -180 to 180).","fullName":"Joystick angle","functionType":"Action","name":"SetJoystickAngle","private":true,"sentence":"Change the angle of the joystick _PARAM2_ of multitouch controller _PARAM1_ to _PARAM3_","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"ModVarScene"},"parameters":["__MultitouchJoystick.Controllers[GetArgumentAsNumber(\"ControllerIdentifier\")].Joystick[GetArgumentAsString(\"JoystickIdentifier\")].Angle","=","GetArgumentAsNumber(\"Value\")"]}]}],"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","type":"string"},{"description":"Value","name":"Value","type":"expression"}],"objectGroups":[]},{"description":"Return the multitouch contoller stick force on X axis (from -1 at the left to 1 at the right).","fullName":"Stick X force","functionType":"Expression","name":"StickForceX","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["SpriteMultitouchJoystick::JoystickForce(GetArgumentAsNumber(\"ControllerIdentifier\"), GetArgumentAsString(\"JoystickIdentifier\")) * cos(ToRad(SpriteMultitouchJoystick::JoystickAngle(GetArgumentAsNumber(\"ControllerIdentifier\"), GetArgumentAsString(\"JoystickIdentifier\"))))"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","supplementaryInformation":"[\"Primary\",\"Secondary\"]","type":"stringWithSelector"}],"objectGroups":[]},{"description":"Return the multitouch contoller stick force on Y axis (from -1 at the top to 1 at the bottom).","fullName":"Stick Y force","functionType":"Expression","name":"StickForceY","sentence":"","events":[{"type":"BuiltinCommonInstructions::Standard","conditions":[],"actions":[{"type":{"value":"SetReturnNumber"},"parameters":["SpriteMultitouchJoystick::JoystickForce(GetArgumentAsNumber(\"ControllerIdentifier\"), GetArgumentAsString(\"JoystickIdentifier\")) * sin(ToRad(SpriteMultitouchJoystick::JoystickAngle(GetArgumentAsNumber(\"ControllerIdentifier\"), GetArgumentAsString(\"JoystickIdentifier\"))))"]}]}],"expressionType":{"type":"expression"},"parameters":[{"description":"Multitouch controller identifier (1, 2, 3, 4...)","name":"ControllerIdentifier","type":"expression"},{"description":"Joystick name","name":"JoystickIdentifier","supplementaryInformation":"[\"Primary\",\"Secondary\"]","type":"stringWithSelector"}],"objectGroups":[]}],"eventsBasedBehaviors":[],"eventsBasedObjects":[{"defaultName":"","description":"","fullName":"","is3D":true,"isAnimatable":true,"isTextContainer":true,"name":"SpriteMultitouchJoystick","eventsFunctions":[],"propertyDescriptors":[],"objects":[{"adaptCollisionMaskAutomatically":false,"assetStoreId":"","name":"Thumb","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"}],"animations":[{"name":"Idle","useMultipleDirections":false,"directions":[{"looping":false,"timeBetweenFrames":0.08,"sprites":[]}]}]},{"adaptCollisionMaskAutomatically":false,"assetStoreId":"","name":"Border","type":"Sprite","updateIfNotVisible":false,"variables":[],"effects":[],"behaviors":[{"name":"Animation","type":"AnimatableCapability::AnimatableBehavior"},{"name":"Effect","type":"EffectCapability::EffectBehavior"},{"name":"Flippable","type":"FlippableCapability::FlippableBehavior"},{"name":"MultitouchJoystick","type":"SpriteMultitouchJoystick::MultitouchJoystick","ControllerIdentifier":1.0,"JoystickIdentifier":"Primary","FloatingEnabled":false,"DeadZoneRadius":0.4,"JoystickAngle":0.0,"JoystickForce":0.0,"TouchId":0.0,"TouchIndex":0.0},{"name":"Opacity","type":"OpacityCapability::OpacityBehavior"},{"name":"Resizable","type":"ResizableCapability::ResizableBehavior"},{"name":"Scale","type":"ScalableCapability::ScalableBehavior"}],"animations":[{"name":"Idle","useMultipleDirections":false,"directions":[{"looping":false,"timeBetweenFrames":0.08,"sprites":[]}]}]}],"objectsFolderStructure":{"folderName":"__ROOT"}}]}],"externalLayouts":[],"externalSourceFiles":[],"usedResources":[]};
gdjs.runtimeGameOptions = {};