gdcore-tools 1.0.2 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/examples/create-objects-from-json/game.json +257 -257
- package/examples/export-game/game.json +204 -204
- package/package-lock.json +223 -223
- package/package.json +32 -32
- package/src/EventsFunctionsExtensionsLoader/MetadataDeclarationHelpers.js +442 -449
- package/src/EventsFunctionsExtensionsLoader/index.js +373 -354
- package/src/JsExtensionsLoader/LocalJsExtensionsFinder.js +0 -3
- package/src/LocalFileSystem.js +39 -39
- package/src/WrappedGD.js +138 -0
- package/src/downloadGD.js +65 -29
- package/src/index.js +10 -110
|
@@ -1,205 +1,205 @@
|
|
|
1
|
-
{
|
|
2
|
-
"firstLayout": "",
|
|
3
|
-
"gdVersion": {
|
|
4
|
-
"build": 99,
|
|
5
|
-
"major": 4,
|
|
6
|
-
"minor": 0,
|
|
7
|
-
"revision": 0
|
|
8
|
-
},
|
|
9
|
-
"properties": {
|
|
10
|
-
"adaptGameResolutionAtRuntime": true,
|
|
11
|
-
"folderProject": false,
|
|
12
|
-
"orientation": "landscape",
|
|
13
|
-
"packageName": "com.example.gamename",
|
|
14
|
-
"projectUuid": "b0ec0124-f3d9-4225-bfb5-60645a43b358",
|
|
15
|
-
"scaleMode": "linear",
|
|
16
|
-
"sizeOnStartupMode": "",
|
|
17
|
-
"useExternalSourceFiles": false,
|
|
18
|
-
"version": "1.0.0",
|
|
19
|
-
"name": "Project",
|
|
20
|
-
"author": "",
|
|
21
|
-
"windowWidth": 800,
|
|
22
|
-
"windowHeight": 600,
|
|
23
|
-
"latestCompilationDirectory": "",
|
|
24
|
-
"maxFPS": 60,
|
|
25
|
-
"minFPS": 20,
|
|
26
|
-
"verticalSync": false,
|
|
27
|
-
"platformSpecificAssets": {},
|
|
28
|
-
"loadingScreen": {
|
|
29
|
-
"showGDevelopSplash": true
|
|
30
|
-
},
|
|
31
|
-
"extensionProperties": [],
|
|
32
|
-
"extensions": [
|
|
33
|
-
{
|
|
34
|
-
"name": "BuiltinObject"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "BuiltinAudio"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "BuiltinVariables"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "BuiltinTime"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "BuiltinMouse"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "BuiltinKeyboard"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "BuiltinJoystick"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "BuiltinCamera"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "BuiltinWindow"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "BuiltinFile"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "BuiltinNetwork"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "BuiltinScene"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "BuiltinAdvanced"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "Sprite"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "BuiltinCommonInstructions"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "BuiltinCommonConversions"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "BuiltinStringInstructions"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "BuiltinMathematicalTools"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"name": "BuiltinExternalLayouts"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"platforms": [
|
|
92
|
-
{
|
|
93
|
-
"name": "GDevelop JS platform"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"currentPlatform": "GDevelop JS platform"
|
|
97
|
-
},
|
|
98
|
-
"resources": {
|
|
99
|
-
"resources": [],
|
|
100
|
-
"resourceFolders": []
|
|
101
|
-
},
|
|
102
|
-
"objects": [],
|
|
103
|
-
"objectsGroups": [],
|
|
104
|
-
"variables": [],
|
|
105
|
-
"layouts": [
|
|
106
|
-
{
|
|
107
|
-
"b": 209,
|
|
108
|
-
"disableInputWhenNotFocused": true,
|
|
109
|
-
"mangledName": "New_32scene",
|
|
110
|
-
"name": "New scene",
|
|
111
|
-
"oglFOV": 90,
|
|
112
|
-
"oglZFar": 500,
|
|
113
|
-
"oglZNear": 1,
|
|
114
|
-
"r": 209,
|
|
115
|
-
"standardSortMethod": true,
|
|
116
|
-
"stopSoundsOnStartup": true,
|
|
117
|
-
"title": "",
|
|
118
|
-
"v": 209,
|
|
119
|
-
"uiSettings": {
|
|
120
|
-
"grid": false,
|
|
121
|
-
"gridB": 255,
|
|
122
|
-
"gridG": 180,
|
|
123
|
-
"gridHeight": 32,
|
|
124
|
-
"gridOffsetX": 0,
|
|
125
|
-
"gridOffsetY": 0,
|
|
126
|
-
"gridR": 158,
|
|
127
|
-
"gridWidth": 32,
|
|
128
|
-
"snap": true,
|
|
129
|
-
"windowMask": false,
|
|
130
|
-
"zoomFactor": 0.7662
|
|
131
|
-
},
|
|
132
|
-
"objectsGroups": [],
|
|
133
|
-
"variables": [],
|
|
134
|
-
"instances": [
|
|
135
|
-
{
|
|
136
|
-
"angle": 0,
|
|
137
|
-
"customSize": false,
|
|
138
|
-
"height": 0,
|
|
139
|
-
"layer": "",
|
|
140
|
-
"locked": false,
|
|
141
|
-
"name": "Test",
|
|
142
|
-
"persistentUuid": "f65d2b44-652d-4fdf-a603-05e48a9cf5ef",
|
|
143
|
-
"width": 0,
|
|
144
|
-
"x": 247,
|
|
145
|
-
"y": 279,
|
|
146
|
-
"zOrder": 1,
|
|
147
|
-
"numberProperties": [],
|
|
148
|
-
"stringProperties": [],
|
|
149
|
-
"initialVariables": []
|
|
150
|
-
}
|
|
151
|
-
],
|
|
152
|
-
"objects": [
|
|
153
|
-
{
|
|
154
|
-
"bold": false,
|
|
155
|
-
"italic": false,
|
|
156
|
-
"name": "Test",
|
|
157
|
-
"smoothed": true,
|
|
158
|
-
"tags": "",
|
|
159
|
-
"type": "TextObject::Text",
|
|
160
|
-
"underlined": false,
|
|
161
|
-
"variables": [],
|
|
162
|
-
"behaviors": [],
|
|
163
|
-
"string": "Test exporting via gdcore-tools",
|
|
164
|
-
"font": "",
|
|
165
|
-
"characterSize": 20,
|
|
166
|
-
"color": {
|
|
167
|
-
"b": 0,
|
|
168
|
-
"g": 0,
|
|
169
|
-
"r": 0
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"events": [],
|
|
174
|
-
"layers": [
|
|
175
|
-
{
|
|
176
|
-
"ambientLightColorB": 16,
|
|
177
|
-
"ambientLightColorG": 0,
|
|
178
|
-
"ambientLightColorR": 0,
|
|
179
|
-
"followBaseLayerCamera": false,
|
|
180
|
-
"isLightingLayer": false,
|
|
181
|
-
"name": "",
|
|
182
|
-
"visibility": true,
|
|
183
|
-
"cameras": [
|
|
184
|
-
{
|
|
185
|
-
"defaultSize": true,
|
|
186
|
-
"defaultViewport": true,
|
|
187
|
-
"height": 0,
|
|
188
|
-
"viewportBottom": 1,
|
|
189
|
-
"viewportLeft": 0,
|
|
190
|
-
"viewportRight": 1,
|
|
191
|
-
"viewportTop": 0,
|
|
192
|
-
"width": 0
|
|
193
|
-
}
|
|
194
|
-
],
|
|
195
|
-
"effects": []
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
"behaviorsSharedData": []
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
"externalEvents": [],
|
|
202
|
-
"eventsFunctionsExtensions": [],
|
|
203
|
-
"externalLayouts": [],
|
|
204
|
-
"externalSourceFiles": []
|
|
1
|
+
{
|
|
2
|
+
"firstLayout": "",
|
|
3
|
+
"gdVersion": {
|
|
4
|
+
"build": 99,
|
|
5
|
+
"major": 4,
|
|
6
|
+
"minor": 0,
|
|
7
|
+
"revision": 0
|
|
8
|
+
},
|
|
9
|
+
"properties": {
|
|
10
|
+
"adaptGameResolutionAtRuntime": true,
|
|
11
|
+
"folderProject": false,
|
|
12
|
+
"orientation": "landscape",
|
|
13
|
+
"packageName": "com.example.gamename",
|
|
14
|
+
"projectUuid": "b0ec0124-f3d9-4225-bfb5-60645a43b358",
|
|
15
|
+
"scaleMode": "linear",
|
|
16
|
+
"sizeOnStartupMode": "",
|
|
17
|
+
"useExternalSourceFiles": false,
|
|
18
|
+
"version": "1.0.0",
|
|
19
|
+
"name": "Project",
|
|
20
|
+
"author": "",
|
|
21
|
+
"windowWidth": 800,
|
|
22
|
+
"windowHeight": 600,
|
|
23
|
+
"latestCompilationDirectory": "",
|
|
24
|
+
"maxFPS": 60,
|
|
25
|
+
"minFPS": 20,
|
|
26
|
+
"verticalSync": false,
|
|
27
|
+
"platformSpecificAssets": {},
|
|
28
|
+
"loadingScreen": {
|
|
29
|
+
"showGDevelopSplash": true
|
|
30
|
+
},
|
|
31
|
+
"extensionProperties": [],
|
|
32
|
+
"extensions": [
|
|
33
|
+
{
|
|
34
|
+
"name": "BuiltinObject"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "BuiltinAudio"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "BuiltinVariables"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "BuiltinTime"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "BuiltinMouse"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "BuiltinKeyboard"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "BuiltinJoystick"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "BuiltinCamera"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "BuiltinWindow"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "BuiltinFile"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "BuiltinNetwork"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "BuiltinScene"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "BuiltinAdvanced"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "Sprite"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "BuiltinCommonInstructions"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "BuiltinCommonConversions"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "BuiltinStringInstructions"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "BuiltinMathematicalTools"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "BuiltinExternalLayouts"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"platforms": [
|
|
92
|
+
{
|
|
93
|
+
"name": "GDevelop JS platform"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"currentPlatform": "GDevelop JS platform"
|
|
97
|
+
},
|
|
98
|
+
"resources": {
|
|
99
|
+
"resources": [],
|
|
100
|
+
"resourceFolders": []
|
|
101
|
+
},
|
|
102
|
+
"objects": [],
|
|
103
|
+
"objectsGroups": [],
|
|
104
|
+
"variables": [],
|
|
105
|
+
"layouts": [
|
|
106
|
+
{
|
|
107
|
+
"b": 209,
|
|
108
|
+
"disableInputWhenNotFocused": true,
|
|
109
|
+
"mangledName": "New_32scene",
|
|
110
|
+
"name": "New scene",
|
|
111
|
+
"oglFOV": 90,
|
|
112
|
+
"oglZFar": 500,
|
|
113
|
+
"oglZNear": 1,
|
|
114
|
+
"r": 209,
|
|
115
|
+
"standardSortMethod": true,
|
|
116
|
+
"stopSoundsOnStartup": true,
|
|
117
|
+
"title": "",
|
|
118
|
+
"v": 209,
|
|
119
|
+
"uiSettings": {
|
|
120
|
+
"grid": false,
|
|
121
|
+
"gridB": 255,
|
|
122
|
+
"gridG": 180,
|
|
123
|
+
"gridHeight": 32,
|
|
124
|
+
"gridOffsetX": 0,
|
|
125
|
+
"gridOffsetY": 0,
|
|
126
|
+
"gridR": 158,
|
|
127
|
+
"gridWidth": 32,
|
|
128
|
+
"snap": true,
|
|
129
|
+
"windowMask": false,
|
|
130
|
+
"zoomFactor": 0.7662
|
|
131
|
+
},
|
|
132
|
+
"objectsGroups": [],
|
|
133
|
+
"variables": [],
|
|
134
|
+
"instances": [
|
|
135
|
+
{
|
|
136
|
+
"angle": 0,
|
|
137
|
+
"customSize": false,
|
|
138
|
+
"height": 0,
|
|
139
|
+
"layer": "",
|
|
140
|
+
"locked": false,
|
|
141
|
+
"name": "Test",
|
|
142
|
+
"persistentUuid": "f65d2b44-652d-4fdf-a603-05e48a9cf5ef",
|
|
143
|
+
"width": 0,
|
|
144
|
+
"x": 247,
|
|
145
|
+
"y": 279,
|
|
146
|
+
"zOrder": 1,
|
|
147
|
+
"numberProperties": [],
|
|
148
|
+
"stringProperties": [],
|
|
149
|
+
"initialVariables": []
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"objects": [
|
|
153
|
+
{
|
|
154
|
+
"bold": false,
|
|
155
|
+
"italic": false,
|
|
156
|
+
"name": "Test",
|
|
157
|
+
"smoothed": true,
|
|
158
|
+
"tags": "",
|
|
159
|
+
"type": "TextObject::Text",
|
|
160
|
+
"underlined": false,
|
|
161
|
+
"variables": [],
|
|
162
|
+
"behaviors": [],
|
|
163
|
+
"string": "Test exporting via gdcore-tools",
|
|
164
|
+
"font": "",
|
|
165
|
+
"characterSize": 20,
|
|
166
|
+
"color": {
|
|
167
|
+
"b": 0,
|
|
168
|
+
"g": 0,
|
|
169
|
+
"r": 0
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"events": [],
|
|
174
|
+
"layers": [
|
|
175
|
+
{
|
|
176
|
+
"ambientLightColorB": 16,
|
|
177
|
+
"ambientLightColorG": 0,
|
|
178
|
+
"ambientLightColorR": 0,
|
|
179
|
+
"followBaseLayerCamera": false,
|
|
180
|
+
"isLightingLayer": false,
|
|
181
|
+
"name": "",
|
|
182
|
+
"visibility": true,
|
|
183
|
+
"cameras": [
|
|
184
|
+
{
|
|
185
|
+
"defaultSize": true,
|
|
186
|
+
"defaultViewport": true,
|
|
187
|
+
"height": 0,
|
|
188
|
+
"viewportBottom": 1,
|
|
189
|
+
"viewportLeft": 0,
|
|
190
|
+
"viewportRight": 1,
|
|
191
|
+
"viewportTop": 0,
|
|
192
|
+
"width": 0
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"effects": []
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"behaviorsSharedData": []
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"externalEvents": [],
|
|
202
|
+
"eventsFunctionsExtensions": [],
|
|
203
|
+
"externalLayouts": [],
|
|
204
|
+
"externalSourceFiles": []
|
|
205
205
|
}
|