Skip to content

Commit 82fff4b

Browse files
committed
Automated Extension submission for issue #2241
1 parent 1ba297a commit 82fff4b

1 file changed

Lines changed: 270 additions & 0 deletions

File tree

Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
{
2+
"author": "",
3+
"category": "Movement",
4+
"dimension": "2D",
5+
"extensionNamespace": "",
6+
"fullName": "JoyChan",
7+
"gdevelopVersion": "",
8+
"helpPath": "",
9+
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPGc+DQoJPHBhdGggZD0iTTExLDExVjIuOUM3LjMsNC40LDQuNCw3LjMsMi45LDExSDExeiIvPg0KCTxwYXRoIGQ9Ik0yMSwxMWg4LjFjLTEuNC0zLjctNC40LTYuN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jgsMTcsOCwxNi43LDhoLTEuM2MtMC40LDAtMC43LTAuMi0wLjktMC41DQoJCUMxNC4zLDcuMSwxNC4zLDYuOCwxNC41LDYuNHogTTE3LjUsMjUuNmwtMC43LDFDMTYuNiwyNi44LDE2LjMsMjcsMTYsMjdzLTAuNi0wLjItMC44LTAuNGwtMC43LTFjLTAuMi0wLjMtMC4yLTAuNywwLTENCgkJYzAuMi0wLjMsMC41LTAuNSwwLjktMC41aDEuM2MwLjQsMCwwLjcsMC4yLDAuOSwwLjVDMTcuNywyNC45LDE3LjcsMjUuMiwxNy41LDI1LjZ6Ii8+DQo8L2c+DQo8L3N2Zz4NCg==",
10+
"name": "MultitouchForJoystickCustom",
11+
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Glyphster Pack/Master/SVG/Videogames/b91cb8a9c1b7a99ee402b29982551afd10c3cf959d82de174c44adff7cc57ffb_Videogames_controller_joystick_arrows_direction.svg",
12+
"shortDescription": "Joystick-chan only cares about one of your fingers.",
13+
"version": "0.0.1",
14+
"description": "This extension includes a behavior for the Thumb called Joystick, and an action with basic options called \"Are you having Joy?\".",
15+
"tags": [
16+
"Joystick",
17+
"Multi",
18+
"Multitouch"
19+
],
20+
"authorIds": [
21+
"FKjuaL0PE2WDrq94jY5kanJhLzM2"
22+
],
23+
"dependencies": [],
24+
"globalVariables": [],
25+
"sceneVariables": [],
26+
"eventsFunctions": [],
27+
"eventsFunctionsFolderStructure": {
28+
"folderName": "__ROOT"
29+
},
30+
"eventsBasedBehaviors": [
31+
{
32+
"description": "Simply add it to the Thumb (do not adjust its properties automatically), and make sure the Thumb, Border, and StickZone are all on the same layer, separate from the layer where the Camera is configured.",
33+
"fullName": "JoyStick",
34+
"helpPath": "",
35+
"iconUrl": "",
36+
"name": "Joystick",
37+
"objectType": "Sprite",
38+
"previewIconUrl": "",
39+
"eventsFunctions": [
40+
{
41+
"description": "Select the Thumb, Border, and Zone, then set the Radius for your joystick.",
42+
"fullName": "Are you having Joy?",
43+
"functionType": "Action",
44+
"name": "Function",
45+
"sentence": "Thumb: _PARAM0_ Zone: _PARAM2_ Border: _PARAM3_ Set MaxRad: _PARAM4_ Layer: _PARAM5_",
46+
"events": [
47+
{
48+
"type": "BuiltinCommonInstructions::Standard",
49+
"conditions": [
50+
{
51+
"type": {
52+
"value": "BooleanVariable"
53+
},
54+
"parameters": [
55+
"Active",
56+
"True",
57+
""
58+
]
59+
},
60+
{
61+
"type": {
62+
"value": "HasAnyTouchOrMouseStarted"
63+
},
64+
"parameters": [
65+
""
66+
]
67+
},
68+
{
69+
"type": {
70+
"value": "IsCursorOnObject"
71+
},
72+
"parameters": [
73+
"Zone",
74+
"",
75+
"",
76+
""
77+
]
78+
}
79+
],
80+
"actions": [
81+
{
82+
"type": {
83+
"value": "SetBooleanVariable"
84+
},
85+
"parameters": [
86+
"Active",
87+
"False",
88+
""
89+
]
90+
},
91+
{
92+
"type": {
93+
"value": "SetNumberVariable"
94+
},
95+
"parameters": [
96+
"TouchID",
97+
"=",
98+
"StartedTouchOrMouseId(0)"
99+
]
100+
}
101+
]
102+
},
103+
{
104+
"type": "BuiltinCommonInstructions::Standard",
105+
"conditions": [
106+
{
107+
"type": {
108+
"value": "BooleanVariable"
109+
},
110+
"parameters": [
111+
"Active",
112+
"False",
113+
""
114+
]
115+
}
116+
],
117+
"actions": [
118+
{
119+
"type": {
120+
"value": "SetX"
121+
},
122+
"parameters": [
123+
"Object",
124+
"=",
125+
"Border.X() + min(MaxRad, DistanceBetweenPositions(Border.X(), Border.Y(), TouchX(TouchID, Layer), TouchY(TouchID, Layer))) * cos(ToRad(AngleBetweenPositions(Border.X(), Border.Y(), TouchX(TouchID, Layer), TouchY(TouchID, Layer))))\n"
126+
]
127+
},
128+
{
129+
"type": {
130+
"value": "SetY"
131+
},
132+
"parameters": [
133+
"Object",
134+
"=",
135+
"Border.Y() + min(MaxRad, DistanceBetweenPositions(Border.X(), Border.Y(), TouchX(TouchID, Layer), TouchY(TouchID, Layer))) * sin(ToRad(AngleBetweenPositions(Border.X(), Border.Y(), TouchX(TouchID, Layer), TouchY(TouchID, Layer))))\n"
136+
]
137+
}
138+
]
139+
},
140+
{
141+
"type": "BuiltinCommonInstructions::Standard",
142+
"conditions": [
143+
{
144+
"type": {
145+
"value": "BooleanVariable"
146+
},
147+
"parameters": [
148+
"Active",
149+
"False",
150+
""
151+
]
152+
},
153+
{
154+
"type": {
155+
"value": "HasTouchEnded"
156+
},
157+
"parameters": [
158+
"",
159+
"TouchID"
160+
]
161+
}
162+
],
163+
"actions": [
164+
{
165+
"type": {
166+
"value": "SetX"
167+
},
168+
"parameters": [
169+
"Object",
170+
"=",
171+
"Border.X()"
172+
]
173+
},
174+
{
175+
"type": {
176+
"value": "SetY"
177+
},
178+
"parameters": [
179+
"Object",
180+
"=",
181+
"Border.Y()"
182+
]
183+
},
184+
{
185+
"type": {
186+
"value": "SetBooleanVariable"
187+
},
188+
"parameters": [
189+
"Active",
190+
"True",
191+
""
192+
]
193+
}
194+
]
195+
}
196+
],
197+
"parameters": [
198+
{
199+
"description": "Object",
200+
"name": "Object",
201+
"supplementaryInformation": "Sprite",
202+
"type": "object"
203+
},
204+
{
205+
"description": "Behavior",
206+
"name": "Behavior",
207+
"supplementaryInformation": "MultitouchForJoystickCustom::Joystick",
208+
"type": "behavior"
209+
},
210+
{
211+
"description": "Select the touch zone of the joystick",
212+
"name": "Zone",
213+
"type": "objectList"
214+
},
215+
{
216+
"description": "Select the border object of the joystick",
217+
"name": "Border",
218+
"type": "objectList"
219+
},
220+
{
221+
"description": "Set the maximum radius of the joystick",
222+
"name": "MaxRad",
223+
"type": "expression"
224+
},
225+
{
226+
"description": "Select the Object layer",
227+
"name": "Layer",
228+
"type": "layer"
229+
}
230+
],
231+
"objectGroups": []
232+
}
233+
],
234+
"eventsFunctionsFolderStructure": {
235+
"folderName": "__ROOT",
236+
"children": [
237+
{
238+
"functionName": "Function"
239+
}
240+
]
241+
},
242+
"propertyDescriptors": [
243+
{
244+
"value": "-1",
245+
"type": "Number",
246+
"label": "",
247+
"name": "TouchID"
248+
},
249+
{
250+
"value": "true",
251+
"type": "Boolean",
252+
"label": "",
253+
"name": "Active"
254+
}
255+
],
256+
"propertiesFolderStructure": {
257+
"folderName": "__ROOT",
258+
"children": [
259+
{
260+
"propertyName": "TouchID"
261+
},
262+
{
263+
"propertyName": "Active"
264+
}
265+
]
266+
}
267+
}
268+
],
269+
"eventsBasedObjects": []
270+
}

0 commit comments

Comments
 (0)