xcratch-create 0.5.6 → 1.0.1

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.
@@ -0,0 +1,251 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ version="1.1"
11
+ width="131.71848"
12
+ height="49.999924"
13
+ viewBox="0 0 131.71848 49.999923"
14
+ id="svg930"
15
+ sodipodi:docname="cat-top-2-b.svg"
16
+ inkscape:version="1.0 (4035a4f, 2020-05-01)">
17
+ <metadata
18
+ id="metadata936">
19
+ <rdf:RDF>
20
+ <cc:Work
21
+ rdf:about="">
22
+ <dc:format>image/svg+xml</dc:format>
23
+ <dc:type
24
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
25
+ <dc:title></dc:title>
26
+ </cc:Work>
27
+ </rdf:RDF>
28
+ </metadata>
29
+ <defs
30
+ id="defs934" />
31
+ <sodipodi:namedview
32
+ fit-margin-bottom="0"
33
+ fit-margin-right="0"
34
+ fit-margin-left="0"
35
+ fit-margin-top="0"
36
+ inkscape:document-rotation="0"
37
+ pagecolor="#ffffff"
38
+ bordercolor="#666666"
39
+ borderopacity="1"
40
+ objecttolerance="10"
41
+ gridtolerance="10"
42
+ guidetolerance="10"
43
+ inkscape:pageopacity="0"
44
+ inkscape:pageshadow="2"
45
+ inkscape:window-width="1722"
46
+ inkscape:window-height="916"
47
+ id="namedview932"
48
+ showgrid="false"
49
+ inkscape:zoom="1.1734996"
50
+ inkscape:cx="-140.4268"
51
+ inkscape:cy="48.904992"
52
+ inkscape:window-x="41"
53
+ inkscape:window-y="147"
54
+ inkscape:window-maximized="0"
55
+ inkscape:current-layer="g926" />
56
+ <g
57
+ transform="translate(-167.40244,-152.39548)"
58
+ id="g928">
59
+ <g
60
+ data-paper-data="{&quot;isPaintingLayer&quot;:true}"
61
+ stroke-linecap="round"
62
+ stroke-linejoin="round"
63
+ stroke-miterlimit="1.5"
64
+ stroke-dasharray="none"
65
+ stroke-dashoffset="0"
66
+ style="mix-blend-mode:normal"
67
+ id="g926">
68
+ <path
69
+ d="m 234.36309,197.27309 c -2.18152,-0.5534 -2.13923,0.42791 -3.6105,1.2197 -2.40981,1.29211 -5.68208,1.60799 -8.34557,1.31739 -5.99494,-0.65702 -10.45945,-2.64237 -12.54795,-8.2236 -3.06175,-8.1958 7.4831,-17.83955 15.4651,-14.93775 8.13418,2.95403 2.99323,5.62588 17.43523,12.41836 2.78186,1.30729 8.92055,3.49565 10.40871,6.97614 0.97239,2.26416 -0.76099,5.24514 -3.5513,4.9537 -2.12233,-0.22071 -2.88333,-0.33693 -4.95493,-0.8558 -3.4583,-0.86675 -6.8405,-1.9921 -10.2988,-2.86812 z"
70
+ fill="#faa51d"
71
+ fill-rule="evenodd"
72
+ stroke="#c48800"
73
+ stroke-width="2.45912"
74
+ id="path868" />
75
+ <path
76
+ d="m 250.85275,154.82933 c 2.07159,-0.51887 2.83258,-0.63511 4.95492,-0.85579 2.7903,-0.29145 4.52369,2.68955 3.5513,4.9537 -1.48818,3.48047 -7.62686,5.66883 -10.40872,6.97612 -14.44199,6.7925 -9.30105,9.46434 -17.43523,12.41837 -7.982,2.90181 -18.52684,-6.74196 -15.46511,-14.93776 2.08851,-5.58122 6.55301,-7.5666 12.54796,-8.2236 2.6635,-0.29061 5.93575,0.0252 8.34557,1.3174 1.47128,0.79179 1.42898,1.77308 3.61052,1.21968 3.45829,-0.876 6.84049,-2.00136 10.2988,-2.86811 z"
77
+ fill="#faa51d"
78
+ fill-rule="evenodd"
79
+ stroke="#c48800"
80
+ stroke-width="2.45912"
81
+ id="path870" />
82
+ <path
83
+ d="m 268.91675,183.8499 c 0.92167,0.74882 2.44364,2.79314 3.47522,3.36676 1.23451,0.67975 5.55525,0.8499 6.83203,1.10512 5.20859,1.03774 7.31402,1.81436 11.94763,4.40198 2.51974,1.40752 4.67589,4.06674 2.71421,6.60045 -0.54961,0.70333 -1.52199,1.81267 -3.97408,0.91223 -3.87263,-1.42689 -5.25086,-2.80579 -9.26723,-3.89407 -3.39911,-0.92064 -7.16181,1.50776 -10.30726,1.99885 -5.28468,0.82294 -10.73001,-2.16562 -13.67253,-6.42355 -1.84331,-2.66848 -1.33597,-6.92221 1.14994,-9.0373 4.09246,-3.49479 7.66915,-1.82953 11.10207,0.96952 z"
84
+ fill="#faa51d"
85
+ fill-rule="evenodd"
86
+ stroke="#c48800"
87
+ stroke-width="2.45912"
88
+ id="path872" />
89
+ <path
90
+ d="m 251.62384,171.37996 c -2.48591,-2.11508 -2.99324,-6.3688 -1.14995,-9.03728 2.94253,-4.25795 8.38786,-7.24652 13.67254,-6.42357 3.14546,0.49108 6.90816,2.91951 10.30725,1.99884 4.01637,-1.08828 5.39463,-2.46716 9.26723,-3.89405 2.4521,-0.90044 3.42448,0.20889 3.97409,0.91224 1.96167,2.53371 -0.19448,5.19291 -2.71421,6.60044 -4.63362,2.58763 -6.73904,3.36423 -11.94763,4.40197 -1.27678,0.25523 -5.59752,0.42539 -6.83204,1.10514 -1.03158,0.57362 -2.55355,2.61793 -3.47521,3.36676 -3.43292,2.79903 -7.00961,4.4643 -11.10207,0.96951 z"
91
+ fill="#faa51d"
92
+ fill-rule="evenodd"
93
+ stroke="#c48800"
94
+ stroke-width="2.45912"
95
+ id="path874" />
96
+ <path
97
+ d="m 270.9549,169.87238 c 1.91939,4.15434 1.48816,9.47445 0.40585,12.22548 -1.73337,4.38933 -9.41096,7.27514 -13.52034,9.19142 -4.27003,1.99548 -10.18888,5.80531 -17.08856,5.41699 -8.15109,-0.45824 -14.56883,-3.53186 -18.54291,-6.45389 -4.084,-3.00792 -9.67308,-4.19982 -9.69845,-12.83193 -0.008,-7.4394 4.86191,-9.33548 9.14884,-12.10755 5.38615,-3.48806 9.95213,-6.13632 17.39296,-6.44629 8.47241,-0.35211 15.35519,2.9675 20.39466,4.73216 3.33146,1.16662 9.68154,2.3307 11.50794,6.27362 z"
98
+ fill="#faa51d"
99
+ fill-rule="evenodd"
100
+ stroke="#c48800"
101
+ stroke-width="2.50587"
102
+ id="path876" />
103
+ <g
104
+ style="stroke-width:1.10794"
105
+ transform="matrix(0.90430745,0,0,0.90085638,16.136878,15.237033)"
106
+ fill-rule="evenodd"
107
+ id="g882">
108
+ <path
109
+ d="m 220.65993,187.50426 c -0.78542,-1.9355 -2.96402,-3.35768 -4.40396,-4.1057 -2.84248,-1.46705 -5.44371,-2.74336 -8.96034,-4.36376 -2.67417,-1.23143 -8.99681,-4.91262 -18.05252,-3.54001 -4.55824,0.69099 -7.84112,2.91822 -10.52558,4.76115 -3.1473,2.16178 -6.13095,3.02199 -7.84859,1.86537 -1.37261,-0.9238 -2.14776,-2.6003 -2.22723,-4.17488 -0.0533,-1.0491 0.0692,-2.00095 1.92802,-3.93552 1.57178,-1.63723 4.67326,-3.48764 6.07673,-4.25156 6.18893,-3.36796 15.08102,-4.58817 18.75286,-4.47129 3.9243,0.12436 7.91685,1.02759 12.016,2.57038 3.69896,1.39225 7.19502,3.33991 10.00009,4.25811 2.28146,0.74802 3.13234,1.48949 4.33852,0.48528"
110
+ fill="#faa51d"
111
+ stroke="#c48800"
112
+ stroke-width="2.72453"
113
+ id="path878" />
114
+ <path
115
+ d="m 182.42972,168.59748 c 3.45045,-1.0429 -0.12379,0.008 0.71595,3.54407 0.94383,3.97503 4.72623,2.24223 1.44058,3.47126 -3.57818,1.33834 -4.94701,3.07645 -7.73276,4.61501 -2.0012,1.10544 -3.44887,1.4183 -4.26023,1.27171 -1.9192,-0.34647 -3.3992,-1.51184 -2.69902,-4.33675 1.10547,-4.45676 8.83981,-7.44829 12.53548,-8.56531 z"
116
+ fill="#ffffff"
117
+ stroke="none"
118
+ stroke-width="0.0918145"
119
+ id="path880" />
120
+ </g>
121
+ <g
122
+ id="g889"
123
+ style="mix-blend-mode:normal;stroke-width:1.10794"
124
+ transform="matrix(0.90430745,0,0,0.90085638,16.136878,15.237024)">
125
+ <g
126
+ style="stroke-width:1.22761"
127
+ fill-rule="nonzero"
128
+ id="g853">
129
+ <path
130
+ d="m 310.2053,180.06419 c 0.0252,2.58028 -0.90746,5.80582 -3.47205,7.76398 -1.71733,1.31052 -4.49561,6.089 -8.01269,9.78514 -3.08737,3.24428 -8.26115,4.3184 -13.47458,2.75871 -17.23127,-5.1545 -14.51751,-38.31385 -0.002,-41.58436 5.42337,-1.22187 10.11758,0.0822 13.47481,3.78771 2.79281,3.08285 6.32948,8.61594 8.01348,9.86927 2.43367,1.81152 3.4427,4.55644 3.4726,7.61954 z"
131
+ fill="#faa51d"
132
+ stroke="#c48800"
133
+ stroke-width="2.76934"
134
+ id="path849" />
135
+ <path
136
+ d="m 309.44912,180.03723 c 0.0357,3.71925 -1.06263,4.87105 -3.09665,7.02623 -1.54464,1.15248 -3.65423,4.20432 -7.52506,8.42795 -3.1928,-4.51859 7.16534,-10.24719 7.16538,-15.45403 3e-5,-5.20677 -11.24178,-11.15804 -7.10093,-15.40079 4.04089,3.90677 5.50685,7.02323 7.26833,8.79959 1.94244,1.89138 3.24786,2.35145 3.28893,6.60105 z"
137
+ fill="#ffffff"
138
+ stroke="none"
139
+ stroke-width="0.0762813"
140
+ id="path851"
141
+ sodipodi:nodetypes="cccsccc" />
142
+ </g>
143
+ <path
144
+ d="m 307.38042,182.93473 c -0.6068,0 -2.16895,-1.44664 -2.16627,-2.61517 0.003,-1.14437 1.55947,-2.63159 2.16627,-2.63159 0.60681,0 1.42453,0.17805 1.47457,2.63159 0.0429,2.15491 -0.86776,2.61517 -1.47457,2.61517 z"
145
+ fill="#5e4a42"
146
+ fill-rule="evenodd"
147
+ stroke="none"
148
+ stroke-width="0.0852112"
149
+ id="path855" />
150
+ <g
151
+ style="stroke-width:1.10794"
152
+ id="g861">
153
+ <path
154
+ d="m 285.05286,198.9878 c -1.14657,3.61479 -14.64556,9.19625 -16.19807,6.69821 -1.55251,-2.49804 4.18358,-20.57026 6.88302,-21.68645"
155
+ fill="#faa51d"
156
+ fill-rule="nonzero"
157
+ stroke="#c48800"
158
+ stroke-width="2.88893"
159
+ id="path857" />
160
+ <path
161
+ d="m 272.64002,202.17072 c 0.44161,-2.67022 2.02488,-9.27921 4.6256,-11.53911 2.34855,-2.04064 3.16025,3.53472 6.03196,7.94488 -2.16162,2.93019 -11.23842,7.11641 -10.65756,3.59422 z"
162
+ fill="#ffffff"
163
+ fill-rule="evenodd"
164
+ stroke="none"
165
+ stroke-width="0.155299"
166
+ id="path859" />
167
+ </g>
168
+ <g
169
+ style="stroke-width:1.10794"
170
+ id="g867">
171
+ <path
172
+ d="m 275.73781,176.00992 c -2.69944,-1.11619 -8.43553,-19.18841 -6.88302,-21.68645 1.55251,-2.49804 15.0515,3.08342 16.19807,6.69821"
173
+ fill="#faa51d"
174
+ fill-rule="nonzero"
175
+ stroke="#c48800"
176
+ stroke-width="2.88893"
177
+ id="path863" />
178
+ <path
179
+ d="m 283.29758,161.43279 c -2.87171,4.41017 -3.68341,9.98552 -6.03196,7.94488 -2.60072,-2.2599 -4.18399,-8.86889 -4.6256,-11.53911 -0.58086,-3.52219 8.49594,0.66403 10.65756,3.59423 z"
180
+ fill="#ffffff"
181
+ fill-rule="evenodd"
182
+ stroke="none"
183
+ stroke-width="0.155299"
184
+ id="path865" />
185
+ </g>
186
+ <path
187
+ d="m 312.24529,190.75061 c -1.36513,-0.80412 -3.20713,-2.53672 -4.30111,-4.02341"
188
+ fill="none"
189
+ fill-rule="evenodd"
190
+ stroke="#000000"
191
+ stroke-width="1.36745"
192
+ id="path869" />
193
+ <path
194
+ d="m 310.3328,193.53618 c -1.38383,-0.89389 -3.45024,-3.78498 -4.22631,-5.82146"
195
+ fill="none"
196
+ fill-rule="evenodd"
197
+ stroke="#000000"
198
+ stroke-width="1.36745"
199
+ id="path871" />
200
+ <path
201
+ d="m 307.94418,173.98929 c 1.09398,-1.48669 2.93598,-3.21929 4.30111,-4.02341"
202
+ fill="none"
203
+ fill-rule="evenodd"
204
+ stroke="#000000"
205
+ stroke-width="1.36745"
206
+ id="path873" />
207
+ <path
208
+ d="m 306.10649,173.00177 c 0.77607,-2.03648 2.84248,-4.92758 4.22631,-5.82147"
209
+ fill="none"
210
+ fill-rule="evenodd"
211
+ stroke="#000000"
212
+ stroke-width="1.36745"
213
+ id="path875" />
214
+ <g
215
+ style="stroke-width:1.22761"
216
+ fill-rule="evenodd"
217
+ id="g881">
218
+ <path
219
+ d="m 300.59193,190.34949 c -1.24973,1.60082 -3.35451,2.04626 -4.70117,0.99495 -1.34666,-1.05131 -1.42525,-3.20129 -0.17553,-4.80211 1.24973,-1.60082 3.35451,-2.04626 4.70118,-0.99495 1.34666,1.05131 1.42525,3.20129 0.17552,4.80211 z"
220
+ fill="#ffffff"
221
+ stroke="#faa51d"
222
+ stroke-width="0.222618"
223
+ id="path877" />
224
+ <path
225
+ d="m 300.32878,189.93995 c -0.98113,1.25677 -2.63357,1.60648 -3.69081,0.78111 -1.05725,-0.82537 -1.11894,-2.51328 -0.13781,-3.77005 0.98113,-1.25677 2.63357,-1.60648 3.69081,-0.78111 1.05725,0.82537 1.11894,2.51328 0.13781,3.77005 z"
226
+ fill="#000000"
227
+ stroke="none"
228
+ stroke-width="0.169681"
229
+ id="path879" />
230
+ </g>
231
+ <g
232
+ style="stroke-width:1.22761"
233
+ fill-rule="evenodd"
234
+ id="g887">
235
+ <path
236
+ d="m 300.4164,175.18194 c -1.34666,1.05131 -3.45145,0.60586 -4.70118,-0.99495 -1.24973,-1.60082 -1.17114,-3.7508 0.17553,-4.80211 1.34666,-1.05131 3.45145,-0.60586 4.70117,0.99495 1.24973,1.60082 1.17114,3.7508 -0.17552,4.80211 z"
237
+ fill="#ffffff"
238
+ stroke="#faa51d"
239
+ stroke-width="0.222618"
240
+ id="path883" />
241
+ <path
242
+ d="m 300.19097,174.55943 c -1.05725,0.82537 -2.70968,0.47565 -3.69081,-0.78111 -0.98113,-1.25677 -0.91944,-2.94467 0.1378,-3.77004 1.05725,-0.82537 2.70968,-0.47565 3.69081,0.78111 0.98113,1.25677 0.91944,2.94467 -0.13781,3.77004 z"
243
+ fill="#000000"
244
+ stroke="none"
245
+ stroke-width="0.169681"
246
+ id="path885" />
247
+ </g>
248
+ </g>
249
+ </g>
250
+ </g>
251
+ </svg>
@@ -1,159 +1,158 @@
1
1
  {
2
- "targets": [
3
- {
4
- "isStage": true,
5
- "name": "Stage",
6
- "variables": {
7
- "`jEk@4|i[#Fk?(8x)AV.-my variable": [
8
- "my variable",
9
- 0
10
- ]
11
- },
12
- "lists": {},
13
- "broadcasts": {},
14
- "blocks": {},
15
- "comments": {},
16
- "currentCostume": 0,
17
- "costumes": [
18
- {
19
- "assetId": "cd21514d0531fdffb22204e0ec5ed84a",
20
- "name": "backdrop1",
21
- "md5ext": "cd21514d0531fdffb22204e0ec5ed84a.svg",
22
- "dataFormat": "svg",
23
- "rotationCenterX": 240,
24
- "rotationCenterY": 180
25
- }
26
- ],
27
- "sounds": [
2
+ "targets": [
28
3
  {
29
- "assetId": "83a9787d4cb6f3b7632b4ddfebf74367",
30
- "name": "pop",
31
- "dataFormat": "wav",
32
- "format": "",
33
- "rate": 44100,
34
- "sampleCount": 1032,
35
- "md5ext": "83a9787d4cb6f3b7632b4ddfebf74367.wav"
36
- }
37
- ],
38
- "volume": 100,
39
- "layerOrder": 0,
40
- "tempo": 60,
41
- "videoTransparency": 50,
42
- "videoState": "on",
43
- "textToSpeechLanguage": null
44
- },
45
- {
46
- "isStage": false,
47
- "name": "Sprite1",
48
- "variables": {},
49
- "lists": {},
50
- "broadcasts": {},
51
- "blocks": {
52
- "a4=fP3v4=(4iJp:x.yP5": {
53
- "opcode": "looks_say",
54
- "next": null,
55
- "parent": "u0,7tME{KvwEe3VhJ:y;",
56
- "inputs": {
57
- "MESSAGE": [
58
- 3,
59
- "0Ma!O1n;`PPH|iLNW*nO",
60
- [
61
- 10,
62
- "Hello!"
63
- ]
64
- ]
65
- },
66
- "fields": {},
67
- "shadow": false,
68
- "topLevel": false
69
- },
70
- "u0,7tME{KvwEe3VhJ:y;": {
71
- "opcode": "event_whenflagclicked",
72
- "next": "a4=fP3v4=(4iJp:x.yP5",
73
- "parent": null,
74
- "inputs": {},
75
- "fields": {},
76
- "shadow": false,
77
- "topLevel": true,
78
- "x": 96,
79
- "y": 77
4
+ "isStage": true,
5
+ "name": "Stage",
6
+ "variables": {
7
+ "`jEk@4|i[#Fk?(8x)AV.-my variable": [
8
+ "my variable",
9
+ 0
10
+ ]
11
+ },
12
+ "lists": {},
13
+ "broadcasts": {},
14
+ "blocks": {},
15
+ "comments": {},
16
+ "currentCostume": 0,
17
+ "costumes": [
18
+ {
19
+ "name": "backdrop1",
20
+ "dataFormat": "svg",
21
+ "assetId": "cd21514d0531fdffb22204e0ec5ed84a",
22
+ "md5ext": "cd21514d0531fdffb22204e0ec5ed84a.svg",
23
+ "rotationCenterX": 240,
24
+ "rotationCenterY": 180
25
+ }
26
+ ],
27
+ "sounds": [
28
+ {
29
+ "name": "pop",
30
+ "assetId": "83a9787d4cb6f3b7632b4ddfebf74367",
31
+ "dataFormat": "wav",
32
+ "format": "",
33
+ "rate": 48000,
34
+ "sampleCount": 1123,
35
+ "md5ext": "83a9787d4cb6f3b7632b4ddfebf74367.wav"
36
+ }
37
+ ],
38
+ "volume": 100,
39
+ "layerOrder": 0,
40
+ "tempo": 60,
41
+ "videoTransparency": 50,
42
+ "videoState": "on",
43
+ "textToSpeechLanguage": null
80
44
  },
81
- "0Ma!O1n;`PPH|iLNW*nO": {
82
- "opcode": "<<extensionID>>_do-it",
83
- "next": null,
84
- "parent": "a4=fP3v4=(4iJp:x.yP5",
85
- "inputs": {
86
- "SCRIPT": [
87
- 1,
88
- [
89
- 10,
90
- "3 + 4"
91
- ]
92
- ]
93
- },
94
- "fields": {},
95
- "shadow": false,
96
- "topLevel": false
97
- }
98
- },
99
- "comments": {},
100
- "currentCostume": 0,
101
- "costumes": [
102
45
  {
103
- "assetId": "bcf454acf82e4504149f7ffe07081dbc",
104
- "name": "costume1",
105
- "bitmapResolution": 1,
106
- "md5ext": "bcf454acf82e4504149f7ffe07081dbc.svg",
107
- "dataFormat": "svg",
108
- "rotationCenterX": 72.5,
109
- "rotationCenterY": 27.5
110
- },
111
- {
112
- "assetId": "0fb9be3e8397c983338cb71dc84d0b25",
113
- "name": "costume2",
114
- "bitmapResolution": 1,
115
- "md5ext": "0fb9be3e8397c983338cb71dc84d0b25.svg",
116
- "dataFormat": "svg",
117
- "rotationCenterX": 72.5,
118
- "rotationCenterY": 27.5
46
+ "isStage": false,
47
+ "name": "Sprite1",
48
+ "variables": {},
49
+ "lists": {},
50
+ "broadcasts": {},
51
+ "blocks": {
52
+ "`sNsDW0Yj~Q,M=~,,O|@": {
53
+ "opcode": "event_whenflagclicked",
54
+ "next": "2GthS.8+si{!3dHoqas,",
55
+ "parent": null,
56
+ "inputs": {},
57
+ "fields": {},
58
+ "shadow": false,
59
+ "topLevel": true,
60
+ "x": 44,
61
+ "y": 44
62
+ },
63
+ "2GthS.8+si{!3dHoqas,": {
64
+ "opcode": "looks_say",
65
+ "next": null,
66
+ "parent": "`sNsDW0Yj~Q,M=~,,O|@",
67
+ "inputs": {
68
+ "MESSAGE": [
69
+ 3,
70
+ "nQ]C2TOO}(vYi-.bOQ.)",
71
+ [
72
+ 10,
73
+ "Hello!"
74
+ ]
75
+ ]
76
+ },
77
+ "fields": {},
78
+ "shadow": false,
79
+ "topLevel": false
80
+ },
81
+ "nQ]C2TOO}(vYi-.bOQ.)": {
82
+ "opcode": "<<extensionID>>_do-it",
83
+ "next": null,
84
+ "parent": "2GthS.8+si{!3dHoqas,",
85
+ "inputs": {
86
+ "SCRIPT": [
87
+ 1,
88
+ [
89
+ 10,
90
+ "3 + 4"
91
+ ]
92
+ ]
93
+ },
94
+ "fields": {},
95
+ "shadow": false,
96
+ "topLevel": false
97
+ }
98
+ },
99
+ "comments": {},
100
+ "currentCostume": 0,
101
+ "costumes": [
102
+ {
103
+ "name": "costume1",
104
+ "bitmapResolution": 1,
105
+ "dataFormat": "svg",
106
+ "assetId": "881c5994e99006fc05359d738af66337",
107
+ "md5ext": "881c5994e99006fc05359d738af66337.svg",
108
+ "rotationCenterX": 65.85918426513672,
109
+ "rotationCenterY": 24.999961853027344
110
+ },
111
+ {
112
+ "name": "costume2",
113
+ "bitmapResolution": 1,
114
+ "dataFormat": "svg",
115
+ "assetId": "b6e71f1bf154c8a5470665fe87dd507c",
116
+ "md5ext": "b6e71f1bf154c8a5470665fe87dd507c.svg",
117
+ "rotationCenterX": 65.85923767089844,
118
+ "rotationCenterY": 24.999961853027344
119
+ }
120
+ ],
121
+ "sounds": [
122
+ {
123
+ "name": "Meow",
124
+ "assetId": "83c36d806dc92327b9e7049a565c6bff",
125
+ "dataFormat": "wav",
126
+ "format": "",
127
+ "rate": 48000,
128
+ "sampleCount": 40681,
129
+ "md5ext": "83c36d806dc92327b9e7049a565c6bff.wav"
130
+ }
131
+ ],
132
+ "volume": 100,
133
+ "layerOrder": 1,
134
+ "visible": true,
135
+ "x": 0,
136
+ "y": 0,
137
+ "size": 100,
138
+ "direction": 90,
139
+ "draggable": false,
140
+ "rotationStyle": "all around"
119
141
  }
120
- ],
121
- "sounds": [
122
- {
123
- "assetId": "83c36d806dc92327b9e7049a565c6bff",
124
- "name": "Meow",
125
- "dataFormat": "wav",
126
- "format": "",
127
- "rate": 44100,
128
- "sampleCount": 37376,
129
- "md5ext": "83c36d806dc92327b9e7049a565c6bff.wav"
130
- }
131
- ],
132
- "volume": 100,
133
- "layerOrder": 1,
134
- "visible": true,
135
- "x": 0,
136
- "y": 0,
137
- "size": 100,
138
- "direction": 90,
139
- "draggable": false,
140
- "rotationStyle": "all around"
142
+ ],
143
+ "monitors": [],
144
+ "extensions": [
145
+ "<<extensionID>>"
146
+ ],
147
+ "extensionURLs": [
148
+ [
149
+ "<<extensionID>>",
150
+ "https://<<account>>.github.io/<<repo>>/dist/<<extensionID>>.mjs"
151
+ ]
152
+ ],
153
+ "meta": {
154
+ "semver": "3.0.0",
155
+ "vm": "2.1.14",
156
+ "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
141
157
  }
142
- ],
143
- "monitors": [],
144
- "extensions": [
145
- "<<extensionID>>"
146
- ],
147
- "extensionURLs": [
148
- [
149
- "<<extensionID>>",
150
- "https://<<account>>.github.io/<<repo>>/dist/<<extensionID>>.mjs"
151
- ]
152
- ],
153
- "meta": {
154
- "semver": "3.0.0",
155
- "vm": "0.2.0",
156
- "origin": "https://xcratch.github.io/editor",
157
- "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36"
158
- }
159
158
  }
@@ -0,0 +1,14 @@
1
+ module.exports = {
2
+ root: true,
3
+ plugins: [],
4
+ extends: [
5
+ "eslint:recommended",
6
+ ],
7
+ env: {
8
+ es6: true,
9
+ "node": true,
10
+ },
11
+ parserOptions: {
12
+ sourceType: "module",
13
+ },
14
+ };
@@ -0,0 +1,83 @@
1
+ import path from 'path';
2
+ import fs from 'fs-extra';
3
+
4
+ import babel from '@rollup/plugin-babel';
5
+ import commonjs from '@rollup/plugin-commonjs';
6
+ import nodeResolve from '@rollup/plugin-node-resolve';
7
+ import nodeGlobals from 'rollup-plugin-node-globals';
8
+ import nodePolifills from 'rollup-plugin-polyfill-node';
9
+ import importImage from '@rollup/plugin-image';
10
+ import multi from '@rollup/plugin-multi-entry';
11
+ import json from '@rollup/plugin-json';
12
+
13
+ // path for block
14
+ const blockSrcDir = path.resolve(process.cwd(), './src/vm/extensions/block');
15
+ const blockFile = path.resolve(blockSrcDir, 'index.js');
16
+ // path for entry
17
+ const entrySrcDir = path.resolve(process.cwd(), './src/gui/lib/libraries/extensions/entry');
18
+ const entryFile = path.resolve(entrySrcDir, 'index.jsx');
19
+ // path for output
20
+ const moduleName = '<<extensionID>>';
21
+ const outputDir = path.resolve(process.cwd(), './dist');
22
+ fs.emptyDirSync(outputDir);
23
+ const moduleFile = path.resolve(outputDir, `${moduleName}.mjs`);
24
+
25
+ const rollupOptions = {
26
+ input: [entryFile, blockFile],
27
+ plugins: [
28
+ multi(),
29
+ importImage(),
30
+ commonjs(),
31
+ nodeGlobals(),
32
+ nodePolifills(),
33
+ nodeResolve({
34
+ browser: true,
35
+ preferBuiltins: true,
36
+ modulePaths: [
37
+ path.resolve(process.cwd(), './node_modules'),
38
+ ],
39
+ }),
40
+ json(),
41
+ babel({
42
+ babelrc: false,
43
+ presets: [
44
+ ['@babel/preset-env',
45
+ {
46
+ "modules": false,
47
+ targets: {
48
+ browsers: [
49
+ 'last 3 versions',
50
+ 'Safari >= 8',
51
+ 'iOS >= 8']
52
+ }
53
+ }
54
+ ],
55
+ '@babel/preset-react'
56
+ ],
57
+ babelHelpers: 'runtime',
58
+ plugins: [
59
+ '@babel/plugin-transform-react-jsx',
60
+ [
61
+ "@babel/plugin-transform-runtime",
62
+ { "regenerator": true }
63
+ ]
64
+ ],
65
+ }),
66
+ ],
67
+ output: {
68
+ file: moduleFile,
69
+ format: 'es',
70
+ sourcemap: true,
71
+ },
72
+ watch: {
73
+ clearScreen: false,
74
+ chokidar: {
75
+ usePolling: true,
76
+ },
77
+ buildDelay: 500,
78
+ },
79
+ external: [
80
+ ],
81
+ }
82
+
83
+ export default rollupOptions;