@ccgf/game-template 0.0.0-stage → 0.2.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,2 @@
1
+ [InternetShortcut]
2
+ URL=https://docs.cocos.com/creator/manual/en/scripting/setup.html#custom-script-template
@@ -0,0 +1,5 @@
1
+ {
2
+ "image": {
3
+ "type": "sprite-frame"
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ # assets/resources
2
+
3
+ 运行时加载的资源根目录(框架的 ViewManager 用 resources.load 加载 View 预制体)
4
+
5
+ 这个文件只是为了让目录能随 npm 包一起发布 —— npm 不打包空目录。
@@ -0,0 +1,14 @@
1
+ {
2
+ "ver": "1.2.0",
3
+ "importer": "directory",
4
+ "imported": true,
5
+ "uuid": "2dc81bbb-1a27-44d1-b2a1-02a802e5c888",
6
+ "files": [],
7
+ "subMetas": {},
8
+ "userData": {
9
+ "isBundle": true,
10
+ "bundleConfigID": "default",
11
+ "bundleName": "resources",
12
+ "priority": 8
13
+ }
14
+ }
@@ -0,0 +1,519 @@
1
+ [
2
+ {
3
+ "__type__": "cc.SceneAsset",
4
+ "_name": "main",
5
+ "_objFlags": 0,
6
+ "__editorExtras__": {},
7
+ "_native": "",
8
+ "scene": {
9
+ "__id__": 1
10
+ }
11
+ },
12
+ {
13
+ "__type__": "cc.Scene",
14
+ "_name": "main",
15
+ "_objFlags": 0,
16
+ "__editorExtras__": {},
17
+ "_parent": null,
18
+ "_children": [
19
+ {
20
+ "__id__": 2
21
+ }
22
+ ],
23
+ "_active": true,
24
+ "_components": [],
25
+ "_prefab": {
26
+ "__id__": 10
27
+ },
28
+ "_lpos": {
29
+ "__type__": "cc.Vec3",
30
+ "x": 0,
31
+ "y": 0,
32
+ "z": 0
33
+ },
34
+ "_lrot": {
35
+ "__type__": "cc.Quat",
36
+ "x": 0,
37
+ "y": 0,
38
+ "z": 0,
39
+ "w": 1
40
+ },
41
+ "_lscale": {
42
+ "__type__": "cc.Vec3",
43
+ "x": 1,
44
+ "y": 1,
45
+ "z": 1
46
+ },
47
+ "_mobility": 0,
48
+ "_layer": 1073741824,
49
+ "_euler": {
50
+ "__type__": "cc.Vec3",
51
+ "x": 0,
52
+ "y": 0,
53
+ "z": 0
54
+ },
55
+ "autoReleaseAssets": false,
56
+ "_globals": {
57
+ "__id__": 11
58
+ },
59
+ "_id": "405b1123-5280-4843-9cd5-f662ef6b4460"
60
+ },
61
+ {
62
+ "__type__": "cc.Node",
63
+ "_name": "Canvas",
64
+ "_objFlags": 0,
65
+ "__editorExtras__": {},
66
+ "_parent": {
67
+ "__id__": 1
68
+ },
69
+ "_children": [
70
+ {
71
+ "__id__": 3
72
+ },
73
+ {
74
+ "__id__": 5
75
+ }
76
+ ],
77
+ "_active": true,
78
+ "_components": [
79
+ {
80
+ "__id__": 7
81
+ },
82
+ {
83
+ "__id__": 8
84
+ },
85
+ {
86
+ "__id__": 9
87
+ }
88
+ ],
89
+ "_prefab": null,
90
+ "_lpos": {
91
+ "__type__": "cc.Vec3",
92
+ "x": 640,
93
+ "y": 360.00000000000006,
94
+ "z": 0
95
+ },
96
+ "_lrot": {
97
+ "__type__": "cc.Quat",
98
+ "x": 0,
99
+ "y": 0,
100
+ "z": 0,
101
+ "w": 1
102
+ },
103
+ "_lscale": {
104
+ "__type__": "cc.Vec3",
105
+ "x": 1,
106
+ "y": 1,
107
+ "z": 1
108
+ },
109
+ "_mobility": 0,
110
+ "_layer": 33554432,
111
+ "_euler": {
112
+ "__type__": "cc.Vec3",
113
+ "x": 0,
114
+ "y": 0,
115
+ "z": 0
116
+ },
117
+ "_id": "beI88Z2HpFELqR4T5EMHpg"
118
+ },
119
+ {
120
+ "__type__": "cc.Node",
121
+ "_name": "Camera",
122
+ "_objFlags": 0,
123
+ "__editorExtras__": {},
124
+ "_parent": {
125
+ "__id__": 2
126
+ },
127
+ "_children": [],
128
+ "_active": true,
129
+ "_components": [
130
+ {
131
+ "__id__": 4
132
+ }
133
+ ],
134
+ "_prefab": null,
135
+ "_lpos": {
136
+ "__type__": "cc.Vec3",
137
+ "x": 0,
138
+ "y": 0,
139
+ "z": 1000
140
+ },
141
+ "_lrot": {
142
+ "__type__": "cc.Quat",
143
+ "x": 0,
144
+ "y": 0,
145
+ "z": 0,
146
+ "w": 1
147
+ },
148
+ "_lscale": {
149
+ "__type__": "cc.Vec3",
150
+ "x": 1,
151
+ "y": 1,
152
+ "z": 1
153
+ },
154
+ "_mobility": 0,
155
+ "_layer": 1073741824,
156
+ "_euler": {
157
+ "__type__": "cc.Vec3",
158
+ "x": 0,
159
+ "y": 0,
160
+ "z": 0
161
+ },
162
+ "_id": "ebFwiq8gBFaYpqYbdoDODe"
163
+ },
164
+ {
165
+ "__type__": "cc.Camera",
166
+ "_name": "",
167
+ "_objFlags": 0,
168
+ "__editorExtras__": {},
169
+ "node": {
170
+ "__id__": 3
171
+ },
172
+ "_enabled": true,
173
+ "__prefab": null,
174
+ "_projection": 0,
175
+ "_priority": 0,
176
+ "_fov": 45,
177
+ "_fovAxis": 0,
178
+ "_orthoHeight": 430.0487804878049,
179
+ "_near": 0,
180
+ "_far": 2000,
181
+ "_color": {
182
+ "__type__": "cc.Color",
183
+ "r": 0,
184
+ "g": 0,
185
+ "b": 0,
186
+ "a": 255
187
+ },
188
+ "_depth": 1,
189
+ "_stencil": 0,
190
+ "_clearFlags": 7,
191
+ "_rect": {
192
+ "__type__": "cc.Rect",
193
+ "x": 0,
194
+ "y": 0,
195
+ "width": 1,
196
+ "height": 1
197
+ },
198
+ "_aperture": 19,
199
+ "_shutter": 7,
200
+ "_iso": 0,
201
+ "_screenScale": 1,
202
+ "_visibility": 1108344832,
203
+ "_targetTexture": null,
204
+ "_postProcess": null,
205
+ "_usePostProcess": false,
206
+ "_cameraType": -1,
207
+ "_trackingType": 0,
208
+ "_id": "63WIch3o5BEYRlXzTT0oWc"
209
+ },
210
+ {
211
+ "__type__": "cc.Node",
212
+ "_name": "AppStart",
213
+ "_objFlags": 0,
214
+ "__editorExtras__": {},
215
+ "_parent": {
216
+ "__id__": 2
217
+ },
218
+ "_children": [],
219
+ "_active": true,
220
+ "_components": [
221
+ {
222
+ "__id__": 6
223
+ }
224
+ ],
225
+ "_prefab": null,
226
+ "_lpos": {
227
+ "__type__": "cc.Vec3",
228
+ "x": 0,
229
+ "y": 0,
230
+ "z": 0
231
+ },
232
+ "_lrot": {
233
+ "__type__": "cc.Quat",
234
+ "x": 0,
235
+ "y": 0,
236
+ "z": 0,
237
+ "w": 1
238
+ },
239
+ "_lscale": {
240
+ "__type__": "cc.Vec3",
241
+ "x": 1,
242
+ "y": 1,
243
+ "z": 1
244
+ },
245
+ "_mobility": 0,
246
+ "_layer": 33554432,
247
+ "_euler": {
248
+ "__type__": "cc.Vec3",
249
+ "x": 0,
250
+ "y": 0,
251
+ "z": 0
252
+ },
253
+ "_id": "68xLzLkVxF3pp3x1WMXyFM"
254
+ },
255
+ {
256
+ "__type__": "fd72e3N97NPo7loJQe0Gp6d",
257
+ "_name": "",
258
+ "_objFlags": 0,
259
+ "__editorExtras__": {},
260
+ "node": {
261
+ "__id__": 5
262
+ },
263
+ "_enabled": true,
264
+ "__prefab": null,
265
+ "_id": "432J6Mg3lITrrrJtK2mv6N"
266
+ },
267
+ {
268
+ "__type__": "cc.UITransform",
269
+ "_name": "",
270
+ "_objFlags": 0,
271
+ "__editorExtras__": {},
272
+ "node": {
273
+ "__id__": 2
274
+ },
275
+ "_enabled": true,
276
+ "__prefab": null,
277
+ "_contentSize": {
278
+ "__type__": "cc.Size",
279
+ "width": 1280,
280
+ "height": 720
281
+ },
282
+ "_anchorPoint": {
283
+ "__type__": "cc.Vec2",
284
+ "x": 0.5,
285
+ "y": 0.5
286
+ },
287
+ "_id": "d6rUX5yfhMlKoWX2bSbawx"
288
+ },
289
+ {
290
+ "__type__": "cc.Canvas",
291
+ "_name": "",
292
+ "_objFlags": 0,
293
+ "__editorExtras__": {},
294
+ "node": {
295
+ "__id__": 2
296
+ },
297
+ "_enabled": true,
298
+ "__prefab": null,
299
+ "_cameraComponent": {
300
+ "__id__": 4
301
+ },
302
+ "_alignCanvasWithScreen": true,
303
+ "_id": "12O/ljcVlEqLmVm3U2gEOQ"
304
+ },
305
+ {
306
+ "__type__": "cc.Widget",
307
+ "_name": "",
308
+ "_objFlags": 0,
309
+ "__editorExtras__": {},
310
+ "node": {
311
+ "__id__": 2
312
+ },
313
+ "_enabled": true,
314
+ "__prefab": null,
315
+ "_alignFlags": 45,
316
+ "_target": null,
317
+ "_left": 0,
318
+ "_right": 0,
319
+ "_top": 5.684341886080802e-14,
320
+ "_bottom": 5.684341886080802e-14,
321
+ "_horizontalCenter": 0,
322
+ "_verticalCenter": 0,
323
+ "_isAbsLeft": true,
324
+ "_isAbsRight": true,
325
+ "_isAbsTop": true,
326
+ "_isAbsBottom": true,
327
+ "_isAbsHorizontalCenter": true,
328
+ "_isAbsVerticalCenter": true,
329
+ "_originalWidth": 0,
330
+ "_originalHeight": 0,
331
+ "_alignMode": 2,
332
+ "_lockFlags": 0,
333
+ "_id": "c5V1EV8IpMtrIvY1OE9t2u"
334
+ },
335
+ {
336
+ "__type__": "cc.PrefabInfo",
337
+ "root": null,
338
+ "asset": null,
339
+ "fileId": "405b1123-5280-4843-9cd5-f662ef6b4460",
340
+ "instance": null,
341
+ "targetOverrides": null
342
+ },
343
+ {
344
+ "__type__": "cc.SceneGlobals",
345
+ "ambient": {
346
+ "__id__": 12
347
+ },
348
+ "shadows": {
349
+ "__id__": 13
350
+ },
351
+ "_skybox": {
352
+ "__id__": 14
353
+ },
354
+ "fog": {
355
+ "__id__": 15
356
+ },
357
+ "octree": {
358
+ "__id__": 16
359
+ },
360
+ "skin": {
361
+ "__id__": 17
362
+ },
363
+ "lightProbeInfo": {
364
+ "__id__": 18
365
+ },
366
+ "postSettings": {
367
+ "__id__": 19
368
+ },
369
+ "bakedWithStationaryMainLight": false,
370
+ "bakedWithHighpLightmap": false
371
+ },
372
+ {
373
+ "__type__": "cc.AmbientInfo",
374
+ "_skyColorHDR": {
375
+ "__type__": "cc.Vec4",
376
+ "x": 0,
377
+ "y": 0,
378
+ "z": 0,
379
+ "w": 0.520833125
380
+ },
381
+ "_skyColor": {
382
+ "__type__": "cc.Vec4",
383
+ "x": 0,
384
+ "y": 0,
385
+ "z": 0,
386
+ "w": 0.520833125
387
+ },
388
+ "_skyIllumHDR": 20000,
389
+ "_skyIllum": 20000,
390
+ "_groundAlbedoHDR": {
391
+ "__type__": "cc.Vec4",
392
+ "x": 0,
393
+ "y": 0,
394
+ "z": 0,
395
+ "w": 0
396
+ },
397
+ "_groundAlbedo": {
398
+ "__type__": "cc.Vec4",
399
+ "x": 0,
400
+ "y": 0,
401
+ "z": 0,
402
+ "w": 0
403
+ },
404
+ "_skyColorLDR": {
405
+ "__type__": "cc.Vec4",
406
+ "x": 0.2,
407
+ "y": 0.5,
408
+ "z": 0.8,
409
+ "w": 1
410
+ },
411
+ "_skyIllumLDR": 20000,
412
+ "_groundAlbedoLDR": {
413
+ "__type__": "cc.Vec4",
414
+ "x": 0.2,
415
+ "y": 0.2,
416
+ "z": 0.2,
417
+ "w": 1
418
+ }
419
+ },
420
+ {
421
+ "__type__": "cc.ShadowsInfo",
422
+ "_enabled": false,
423
+ "_type": 0,
424
+ "_normal": {
425
+ "__type__": "cc.Vec3",
426
+ "x": 0,
427
+ "y": 1,
428
+ "z": 0
429
+ },
430
+ "_distance": 0,
431
+ "_planeBias": 1,
432
+ "_shadowColor": {
433
+ "__type__": "cc.Color",
434
+ "r": 76,
435
+ "g": 76,
436
+ "b": 76,
437
+ "a": 255
438
+ },
439
+ "_maxReceived": 4,
440
+ "_size": {
441
+ "__type__": "cc.Vec2",
442
+ "x": 512,
443
+ "y": 512
444
+ }
445
+ },
446
+ {
447
+ "__type__": "cc.SkyboxInfo",
448
+ "_envLightingType": 0,
449
+ "_envmapHDR": null,
450
+ "_envmap": null,
451
+ "_envmapLDR": null,
452
+ "_diffuseMapHDR": null,
453
+ "_diffuseMapLDR": null,
454
+ "_enabled": false,
455
+ "_useHDR": true,
456
+ "_editableMaterial": null,
457
+ "_reflectionHDR": null,
458
+ "_reflectionLDR": null,
459
+ "_rotationAngle": 0
460
+ },
461
+ {
462
+ "__type__": "cc.FogInfo",
463
+ "_type": 0,
464
+ "_fogColor": {
465
+ "__type__": "cc.Color",
466
+ "r": 200,
467
+ "g": 200,
468
+ "b": 200,
469
+ "a": 255
470
+ },
471
+ "_enabled": false,
472
+ "_fogDensity": 0.3,
473
+ "_fogStart": 0.5,
474
+ "_fogEnd": 300,
475
+ "_fogAtten": 5,
476
+ "_fogTop": 1.5,
477
+ "_fogRange": 1.2,
478
+ "_accurate": false
479
+ },
480
+ {
481
+ "__type__": "cc.OctreeInfo",
482
+ "_enabled": false,
483
+ "_minPos": {
484
+ "__type__": "cc.Vec3",
485
+ "x": -1024,
486
+ "y": -1024,
487
+ "z": -1024
488
+ },
489
+ "_maxPos": {
490
+ "__type__": "cc.Vec3",
491
+ "x": 1024,
492
+ "y": 1024,
493
+ "z": 1024
494
+ },
495
+ "_depth": 8
496
+ },
497
+ {
498
+ "__type__": "cc.SkinInfo",
499
+ "_enabled": false,
500
+ "_blurRadius": 0.01,
501
+ "_sssIntensity": 3
502
+ },
503
+ {
504
+ "__type__": "cc.LightProbeInfo",
505
+ "_giScale": 1,
506
+ "_giSamples": 1024,
507
+ "_bounces": 2,
508
+ "_reduceRinging": 0,
509
+ "_showProbe": true,
510
+ "_showWireframe": true,
511
+ "_showConvex": false,
512
+ "_data": null,
513
+ "_lightProbeSphereVolume": 1
514
+ },
515
+ {
516
+ "__type__": "cc.PostSettingsInfo",
517
+ "_toneMappingType": 0
518
+ }
519
+ ]
@@ -0,0 +1,11 @@
1
+ {
2
+ "ver": "1.1.50",
3
+ "importer": "scene",
4
+ "imported": true,
5
+ "uuid": "405b1123-5280-4843-9cd5-f662ef6b4460",
6
+ "files": [
7
+ ".json"
8
+ ],
9
+ "subMetas": {},
10
+ "userData": {}
11
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "ver": "1.2.0",
3
+ "importer": "directory",
4
+ "imported": true,
5
+ "uuid": "2ca3bc78-d9da-420b-a71b-017933f1547d",
6
+ "files": [],
7
+ "subMetas": {},
8
+ "userData": {}
9
+ }
@@ -0,0 +1,19 @@
1
+ import { _decorator, Component, Node } from 'cc';
2
+ import { GameIns } from '@ccgf/framework';
3
+ const { ccclass, property } = _decorator;
4
+
5
+ @ccclass('AppStart')
6
+ export class AppStart extends Component {
7
+
8
+ protected onLoad(): void {
9
+ GameIns.init(this.node);
10
+ }
11
+
12
+ start() { }
13
+
14
+ update(deltaTime: number) {
15
+ GameIns.update(deltaTime);
16
+ }
17
+ }
18
+
19
+
@@ -0,0 +1,9 @@
1
+ {
2
+ "ver": "4.0.24",
3
+ "importer": "typescript",
4
+ "imported": true,
5
+ "uuid": "fd72edcd-f7b3-4fa3-b968-2507b41a9e9d",
6
+ "files": [],
7
+ "subMetas": {},
8
+ "userData": {}
9
+ }
@@ -0,0 +1,5 @@
1
+ # assets/scripts/gameplay
2
+
3
+ 玩法模块(扩展的"创建模块"会建在这里)
4
+
5
+ 这个文件只是为了让目录能随 npm 包一起发布 —— npm 不打包空目录。
@@ -0,0 +1,5 @@
1
+ # assets/scripts/manager
2
+
3
+ 管理器(扩展的"创建管理器"会建在这里)
4
+
5
+ 这个文件只是为了让目录能随 npm 包一起发布 —— npm 不打包空目录。
@@ -0,0 +1,9 @@
1
+ {
2
+ "ver": "1.2.0",
3
+ "importer": "directory",
4
+ "imported": true,
5
+ "uuid": "058123f1-803a-4dd0-9d5c-9c45a7228669",
6
+ "files": [],
7
+ "subMetas": {},
8
+ "userData": {}
9
+ }
package/package.json CHANGED
@@ -1,6 +1,26 @@
1
1
  {
2
2
  "name": "@ccgf/game-template",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "uuid": "2bd8cbad-d516-4fa2-90fd-cf1174a601fb",
4
+ "creator": {
5
+ "version": "3.8.8"
6
+ },
7
+ "version": "0.2.1",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "description": "游戏框架模板工程(从 dev/DevProject 生成,别手改这个目录)",
12
+ "scripts": {
13
+ "setup": "node tools/setup.js"
14
+ },
15
+ "ccgfTemplate": {
16
+ "extensions": [
17
+ "game-tool"
18
+ ]
19
+ },
20
+ "dependencies": {
21
+ "@ccgf/framework": "^0.1.1",
22
+ "@ccgf/pathfinding": "^0.1.3",
23
+ "@ccgf/flow-field": "^0.1.1",
24
+ "game-tool": "^1.0.3"
25
+ }
26
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "__version__": "1.3.9"
3
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "__version__": "3.0.9",
3
+ "game": {
4
+ "name": "未知游戏",
5
+ "app_id": "UNKNOW",
6
+ "c_id": "0"
7
+ },
8
+ "appConfigMaps": [
9
+ {
10
+ "app_id": "UNKNOW",
11
+ "config_id": "741365"
12
+ }
13
+ ],
14
+ "configs": [
15
+ {
16
+ "app_id": "UNKNOW",
17
+ "config_id": "741365",
18
+ "config_name": "Default",
19
+ "config_remarks": "",
20
+ "services": []
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "__version__": "1.0.1"
3
+ }
@@ -0,0 +1,226 @@
1
+ {
2
+ "__version__": "1.0.12",
3
+ "modules": {
4
+ "configs": {
5
+ "defaultConfig": {
6
+ "name": "Default Config",
7
+ "cache": {
8
+ "base": {
9
+ "_value": true
10
+ },
11
+ "gfx-webgl": {
12
+ "_value": true
13
+ },
14
+ "gfx-webgl2": {
15
+ "_value": true
16
+ },
17
+ "gfx-webgpu": {
18
+ "_value": false
19
+ },
20
+ "animation": {
21
+ "_value": true
22
+ },
23
+ "skeletal-animation": {
24
+ "_value": false
25
+ },
26
+ "3d": {
27
+ "_value": false
28
+ },
29
+ "meshopt": {
30
+ "_value": false
31
+ },
32
+ "2d": {
33
+ "_value": true
34
+ },
35
+ "sorting-2d": {
36
+ "_value": false
37
+ },
38
+ "rich-text": {
39
+ "_value": true
40
+ },
41
+ "mask": {
42
+ "_value": true
43
+ },
44
+ "graphics": {
45
+ "_value": true
46
+ },
47
+ "ui-skew": {
48
+ "_value": false
49
+ },
50
+ "affine-transform": {
51
+ "_value": true
52
+ },
53
+ "ui": {
54
+ "_value": true
55
+ },
56
+ "particle": {
57
+ "_value": false
58
+ },
59
+ "physics": {
60
+ "_value": false,
61
+ "_option": "physics-ammo"
62
+ },
63
+ "physics-ammo": {
64
+ "_value": false,
65
+ "_flags": {
66
+ "LOAD_BULLET_MANUALLY": false
67
+ }
68
+ },
69
+ "physics-cannon": {
70
+ "_value": false
71
+ },
72
+ "physics-physx": {
73
+ "_value": false,
74
+ "_flags": {
75
+ "LOAD_PHYSX_MANUALLY": false
76
+ }
77
+ },
78
+ "physics-builtin": {
79
+ "_value": false
80
+ },
81
+ "physics-2d": {
82
+ "_value": true,
83
+ "_option": "physics-2d-box2d"
84
+ },
85
+ "physics-2d-box2d": {
86
+ "_value": false
87
+ },
88
+ "physics-2d-box2d-wasm": {
89
+ "_value": false,
90
+ "_flags": {
91
+ "LOAD_BOX2D_MANUALLY": false
92
+ }
93
+ },
94
+ "physics-2d-builtin": {
95
+ "_value": false
96
+ },
97
+ "physics-2d-box2d-jsb": {
98
+ "_value": false
99
+ },
100
+ "intersection-2d": {
101
+ "_value": true
102
+ },
103
+ "primitive": {
104
+ "_value": false
105
+ },
106
+ "profiler": {
107
+ "_value": true
108
+ },
109
+ "occlusion-query": {
110
+ "_value": false
111
+ },
112
+ "geometry-renderer": {
113
+ "_value": false
114
+ },
115
+ "debug-renderer": {
116
+ "_value": false
117
+ },
118
+ "particle-2d": {
119
+ "_value": true
120
+ },
121
+ "audio": {
122
+ "_value": true
123
+ },
124
+ "video": {
125
+ "_value": true
126
+ },
127
+ "webview": {
128
+ "_value": true
129
+ },
130
+ "tween": {
131
+ "_value": true
132
+ },
133
+ "websocket": {
134
+ "_value": false
135
+ },
136
+ "websocket-server": {
137
+ "_value": false
138
+ },
139
+ "terrain": {
140
+ "_value": false
141
+ },
142
+ "light-probe": {
143
+ "_value": false
144
+ },
145
+ "tiled-map": {
146
+ "_value": true
147
+ },
148
+ "vendor-google": {
149
+ "_value": false
150
+ },
151
+ "spine": {
152
+ "_value": true,
153
+ "_option": "spine-3.8"
154
+ },
155
+ "spine-3.8": {
156
+ "_value": true,
157
+ "_flags": {
158
+ "LOAD_SPINE_MANUALLY": false
159
+ }
160
+ },
161
+ "spine-4.2": {
162
+ "_value": false,
163
+ "_flags": {
164
+ "LOAD_SPINE_MANUALLY": false
165
+ }
166
+ },
167
+ "dragon-bones": {
168
+ "_value": true
169
+ },
170
+ "marionette": {
171
+ "_value": false
172
+ },
173
+ "procedural-animation": {
174
+ "_value": false
175
+ },
176
+ "custom-pipeline-post-process": {
177
+ "_value": false
178
+ },
179
+ "render-pipeline": {
180
+ "_value": true,
181
+ "_option": "custom-pipeline"
182
+ },
183
+ "custom-pipeline": {
184
+ "_value": true
185
+ },
186
+ "legacy-pipeline": {
187
+ "_value": false
188
+ },
189
+ "xr": {
190
+ "_value": false
191
+ }
192
+ },
193
+ "includeModules": [
194
+ "2d",
195
+ "affine-transform",
196
+ "animation",
197
+ "audio",
198
+ "base",
199
+ "custom-pipeline",
200
+ "dragon-bones",
201
+ "gfx-webgl",
202
+ "gfx-webgl2",
203
+ "graphics",
204
+ "intersection-2d",
205
+ "mask",
206
+ "particle-2d",
207
+ "physics-2d-box2d",
208
+ "profiler",
209
+ "rich-text",
210
+ "spine-3.8",
211
+ "tiled-map",
212
+ "tween",
213
+ "ui",
214
+ "video",
215
+ "webview"
216
+ ],
217
+ "noDeprecatedFeatures": {
218
+ "value": false,
219
+ "version": ""
220
+ },
221
+ "flags": {}
222
+ }
223
+ },
224
+ "globalConfigKey": "defaultConfig"
225
+ }
226
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "__version__": "1.0.1",
3
+ "information": {
4
+ "customSplash": {
5
+ "id": "customSplash",
6
+ "label": "customSplash",
7
+ "enable": true,
8
+ "customSplash": {
9
+ "complete": false,
10
+ "form": "https://creator-api.cocos.com/api/form/show?sid=993683ff7b5985bdd72f1fd5f51d265b"
11
+ }
12
+ },
13
+ "removeSplash": {
14
+ "id": "removeSplash",
15
+ "label": "removeSplash",
16
+ "enable": true,
17
+ "removeSplash": {
18
+ "complete": false,
19
+ "form": "https://creator-api.cocos.com/api/form/show?sid=993683ff7b5985bdd72f1fd5f51d265b"
20
+ }
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "__version__": "1.0.4"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "__version__": "1.0.6"
3
+ }
package/tools/setup.js ADDED
@@ -0,0 +1,73 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * 一键把模板工程装起来 —— 使用者只需要跑这一个脚本。
4
+ *
5
+ * node scripts/setup.js
6
+ *
7
+ * 两步,顺序有依赖,**任一步失败就停**(不带着半装状态往下走):
8
+ *
9
+ * 1. `npm install` —— 框架核心与公共模块都是 npm 依赖(见 ROADMAP T1 决定②)
10
+ * 2. 把扩展落地到 `extensions/` —— Cocos **只从工程的 extendsions/ 读扩展**,
11
+ * 不会去 node_modules 里找(决定③:不 hook 引擎,宁可多这一条命令)
12
+ *
13
+ * **可重复执行**:升级时再跑一遍,就是"更新到 package.json 里声明的版本"。
14
+ */
15
+
16
+ const fs = require('fs');
17
+ const path = require('path');
18
+ const { execFileSync } = require('child_process');
19
+
20
+ const PROJECT = path.resolve(__dirname, '..');
21
+ const MANIFEST = path.join(PROJECT, 'package.json');
22
+
23
+ if (!fs.existsSync(MANIFEST)) {
24
+ console.error('[setup] 找不到 ' + MANIFEST + ' —— 请把本脚本放在工程的 scripts/ 目录下');
25
+ process.exit(1);
26
+ }
27
+
28
+ const manifest = JSON.parse(fs.readFileSync(MANIFEST, 'utf8'));
29
+ const extensions = (manifest.ccgfTemplate && manifest.ccgfTemplate.extensions) || [];
30
+
31
+ /** 失败就停:带上可操作的下一步,不让人对着半装状态猜 */
32
+ function fail(message) {
33
+ console.error('\n[setup] 失败:' + message);
34
+ process.exit(1);
35
+ }
36
+
37
+ function npmInstall() {
38
+ // Windows 上必须走 cmd.exe 且带 windowsVerbatimArguments:
39
+ // 否则 Node 会二次转义引号,cmd 把整行当成命令名 —— npm 根本没被启动(踩过一次)
40
+ if (process.platform === 'win32') {
41
+ execFileSync('cmd.exe', ['/d', '/s', '/c', 'npm install'], {
42
+ cwd: PROJECT, stdio: 'inherit', windowsVerbatimArguments: true,
43
+ });
44
+ } else {
45
+ execFileSync('npm', ['install'], { cwd: PROJECT, stdio: 'inherit' });
46
+ }
47
+ }
48
+
49
+ console.log('[setup] 工程:' + PROJECT);
50
+
51
+ console.log('\n[1/2] 安装依赖(npm install)');
52
+ try {
53
+ npmInstall();
54
+ } catch (err) {
55
+ fail('npm install 没成功。请确认已装 Node.js 并且网络可用,然后重跑本脚本。\n 原始错误:'
56
+ + (err && err.message ? err.message : String(err)));
57
+ }
58
+
59
+ console.log('\n[2/2] 把扩展装到 extensions/');
60
+ for (const pkg of extensions) {
61
+ const from = path.join(PROJECT, 'node_modules', pkg);
62
+ if (!fs.existsSync(from)) {
63
+ fail('依赖里没有 ' + pkg + '。它应当在本工程 package.json 的 dependencies 里;\n'
64
+ + ' 如果没有,说明这个扩展还没发布,或者版本写错了。');
65
+ }
66
+ const name = pkg.split('/').pop();
67
+ const to = path.join(PROJECT, 'extensions', name);
68
+ fs.rmSync(to, { recursive: true, force: true });
69
+ fs.cpSync(from, to, { recursive: true });
70
+ console.log(' ' + pkg + ' -> extensions/' + name);
71
+ }
72
+
73
+ console.log('\n[setup] 完成。用 Cocos Creator 打开这个工程即可。');
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ /* Base configuration. Do not edit this field. */
3
+ "extends": "./temp/tsconfig.cocos.json",
4
+ /* Add your custom configuration here. */
5
+ "compilerOptions": {
6
+ "strict": false,
7
+ "ignoreDeprecations": "6.0",
8
+ "lib": [
9
+ "ES2017",
10
+ "DOM"
11
+ ]
12
+ }
13
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.