Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TNGD_CaveCruiser
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
TNGD_CaveCruiser
Commits
e4e96666
Commit
e4e96666
authored
Aug 09, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理代码1
parent
869718ad
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
280 additions
and
171 deletions
+280
-171
custom.d.ts
@types/custom.d.ts
+4
-1
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+74
-70
1.prefab
assets/Bundles/MainGame/prefab/1.prefab
+1
-1
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+195
-92
HomeScene.scene
assets/resources/HomeScene/HomeScene.scene
+3
-3
engine.json
settings/v2/packages/engine.json
+3
-4
No files found.
@types/custom.d.ts
View file @
e4e96666
declare
module
"cc"
{
declare
module
"cc"
{
export
enum
PhysicsGroup
{
export
enum
PhysicsGroup
{
DEFAULT
=
1
DEFAULT
=
1
,
Ball
=
1
<<
1
,
Line
=
1
<<
2
,
Wall
=
1
<<
3
}
}
}
}
assets/Bundles/MainGame/MainGame.scene
View file @
e4e96666
...
@@ -85,9 +85,6 @@
...
@@ -85,9 +85,6 @@
{
{
"__id__": 23
"__id__": 23
},
},
{
"__id__": 26
},
{
{
"__id__": 32
"__id__": 32
}
}
...
@@ -840,14 +837,18 @@
...
@@ -840,14 +837,18 @@
"_parent": {
"_parent": {
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [
{
"__id__": 24
}
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
24
"__id__":
30
},
},
{
{
"__id__":
25
"__id__":
31
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -880,90 +881,38 @@
...
@@ -880,90 +881,38 @@
},
},
"_id": "aegQfMWP1L0JOjLat/I56l"
"_id": "aegQfMWP1L0JOjLat/I56l"
},
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1624
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_id": "ddlVMEybBJ8rUS4cpN9VuM"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 750,
"_originalHeight": 1624,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "2bk/+7vpdDOpwKEwWzZo4r"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "线",
"_name": "线",
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"_parent": {
"_parent": {
"__id__": 2
"__id__": 2
3
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
7
"__id__": 2
5
},
},
{
{
"__id__": 2
8
"__id__": 2
6
},
},
{
{
"__id__": 2
9
"__id__": 2
7
},
},
{
{
"__id__":
30
"__id__":
28
},
},
{
{
"__id__":
31
"__id__":
29
}
}
],
],
"_prefab": null,
"_prefab": null,
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 0,
"x": 0,
"y":
530
,
"y":
-282
,
"z": 0
"z": 0
},
},
"_lrot": {
"_lrot": {
...
@@ -995,7 +944,7 @@
...
@@ -995,7 +944,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 2
6
"__id__": 2
4
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -1017,7 +966,7 @@
...
@@ -1017,7 +966,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 2
6
"__id__": 2
4
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -1056,7 +1005,7 @@
...
@@ -1056,7 +1005,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 2
6
"__id__": 2
4
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -1086,7 +1035,7 @@
...
@@ -1086,7 +1035,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 2
6
"__id__": 2
4
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -1114,7 +1063,7 @@
...
@@ -1114,7 +1063,7 @@
"_objFlags": 0,
"_objFlags": 0,
"__editorExtras__": {},
"__editorExtras__": {},
"node": {
"node": {
"__id__": 2
6
"__id__": 2
4
},
},
"_enabled": true,
"_enabled": true,
"__prefab": null,
"__prefab": null,
...
@@ -1136,6 +1085,58 @@
...
@@ -1136,6 +1085,58 @@
},
},
"_id": "85F3EWbQZP9JsmQavzPyBC"
"_id": "85F3EWbQZP9JsmQavzPyBC"
},
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1624
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_id": "ddlVMEybBJ8rUS4cpN9VuM"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 750,
"_originalHeight": 1624,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "2bk/+7vpdDOpwKEwWzZo4r"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "top",
"_name": "top",
...
@@ -2489,6 +2490,9 @@
...
@@ -2489,6 +2490,9 @@
"proteanTxt": {
"proteanTxt": {
"__id__": 54
"__id__": 54
},
},
"line": {
"__id__": 24
},
"proteanPrefab": {
"proteanPrefab": {
"__uuid__": "7527895a-e3c6-4814-940c-7099adca7bde",
"__uuid__": "7527895a-e3c6-4814-940c-7099adca7bde",
"__expectedType__": "cc.Prefab"
"__expectedType__": "cc.Prefab"
...
...
assets/Bundles/MainGame/prefab/1.prefab
View file @
e4e96666
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
"x": 0,
"x": 0,
"y": 0
"y": 0
},
},
"_radius": 6
7
,
"_radius": 6
6.5
,
"_id": ""
"_id": ""
},
},
{
{
...
...
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
e4e96666
This diff is collapsed.
Click to expand it.
assets/resources/HomeScene/HomeScene.scene
View file @
e4e96666
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
"_prefab": null,
"_prefab": null,
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 37
4.99999999999994
,
"x": 37
5
,
"y": 812,
"y": 812,
"z": 0
"z": 0
},
},
...
@@ -581,7 +581,7 @@
...
@@ -581,7 +581,7 @@
"__prefab": null,
"__prefab": null,
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 7
49.9999999999999
,
"width": 7
50
,
"height": 0
"height": 0
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -633,7 +633,7 @@
...
@@ -633,7 +633,7 @@
"__prefab": null,
"__prefab": null,
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 7
49.9999999999999
,
"width": 7
50
,
"height": 1624
"height": 1624
},
},
"_anchorPoint": {
"_anchorPoint": {
...
...
settings/v2/packages/engine.json
View file @
e4e96666
...
@@ -56,10 +56,10 @@
...
@@ -56,10 +56,10 @@
"_option"
:
"physics-2d-box2d"
"_option"
:
"physics-2d-box2d"
},
},
"physics-2d-box2d"
:
{
"physics-2d-box2d"
:
{
"_value"
:
false
"_value"
:
"physics-2d-box2d"
},
},
"physics-2d-builtin"
:
{
"physics-2d-builtin"
:
{
"_value"
:
false
"_value"
:
"physics-2d-builtin"
},
},
"intersection-2d"
:
{
"intersection-2d"
:
{
"_value"
:
true
"_value"
:
true
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
"_value"
:
false
"_value"
:
false
},
},
"audio"
:
{
"audio"
:
{
"_value"
:
tru
e
"_value"
:
fals
e
},
},
"video"
:
{
"video"
:
{
"_value"
:
false
"_value"
:
false
...
@@ -135,7 +135,6 @@
...
@@ -135,7 +135,6 @@
"includeModules"
:
[
"includeModules"
:
[
"2d"
,
"2d"
,
"animation"
,
"animation"
,
"audio"
,
"base"
,
"base"
,
"gfx-webgl"
,
"gfx-webgl"
,
"gfx-webgl2"
,
"gfx-webgl2"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment