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
95de71a4
Commit
95de71a4
authored
Sep 26, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传
parent
1d2a9126
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
HomeScene.scene
assets/Bundles/HomeScene/HomeScene.scene
+9
-9
MainGame.ts
assets/Scripts/Scenes/MainGame/MainGame.ts
+6
-3
reference-image.json
profiles/v2/packages/reference-image.json
+1
-1
No files found.
assets/Bundles/HomeScene/HomeScene.scene
View file @
95de71a4
...
@@ -1792,7 +1792,7 @@
...
@@ -1792,7 +1792,7 @@
"y": -180,
"y": -180,
"z": -19.35996391123362
"z": -19.35996391123362
},
},
"_id": "
c8coPoNBBCVo/o0Gc9I0xx
"
"_id": "
26AaghC3ZLQoivi8IPLLx6
"
},
},
{
{
"__type__": "cc.UITransform",
"__type__": "cc.UITransform",
...
@@ -1814,7 +1814,7 @@
...
@@ -1814,7 +1814,7 @@
"x": 0,
"x": 0,
"y": 1
"y": 1
},
},
"_id": "
1aMYik40VONLKt82ZMq+X0
"
"_id": "
4awsrLTDZPupNEWNUynBR3
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -1850,7 +1850,7 @@
...
@@ -1850,7 +1850,7 @@
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_useGrayscale": false,
"_atlas": null,
"_atlas": null,
"_id": "
84/zmCisFMNKB/fpVvtd1G
"
"_id": "
b8gMWkSXRMxK5hFXrZOP9g
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
...
@@ -1898,7 +1898,7 @@
...
@@ -1898,7 +1898,7 @@
"y": 180,
"y": 180,
"z": 0
"z": 0
},
},
"_id": "
97tqpNmfVGV5K5JZcLdHDC
"
"_id": "
8d9MTuN+hJCqWfWMTAH874
"
},
},
{
{
"__type__": "cc.UITransform",
"__type__": "cc.UITransform",
...
@@ -1920,7 +1920,7 @@
...
@@ -1920,7 +1920,7 @@
"x": 0,
"x": 0,
"y": 1
"y": 1
},
},
"_id": "
ce4jj0jQVGnZ8gV5jHQN40
"
"_id": "
13L7gQxkVEMLNT/oINPmvT
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -1956,7 +1956,7 @@
...
@@ -1956,7 +1956,7 @@
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_useGrayscale": false,
"_atlas": null,
"_atlas": null,
"_id": "
fcDeua1pVIgYkRyPVe3IgI
"
"_id": "
6cx/20SspPX4lorFO9bDOT
"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
...
@@ -2004,7 +2004,7 @@
...
@@ -2004,7 +2004,7 @@
"y": 180,
"y": 180,
"z": 0
"z": 0
},
},
"_id": "
7d8Nqw0X9KyrGZ1fcDkMwc
"
"_id": "
23YQ0ruDNFKIjEUCfs6Dy7
"
},
},
{
{
"__type__": "cc.UITransform",
"__type__": "cc.UITransform",
...
@@ -2026,7 +2026,7 @@
...
@@ -2026,7 +2026,7 @@
"x": 0,
"x": 0,
"y": 1
"y": 1
},
},
"_id": "
bcCD6p2bNPEIfBDWCMLdEy
"
"_id": "
97LgeXPmZExbhqMi3/Fimf
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -2062,7 +2062,7 @@
...
@@ -2062,7 +2062,7 @@
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_useGrayscale": false,
"_atlas": null,
"_atlas": null,
"_id": "
b6bq3KV3pOQZXXyV+gWUjp
"
"_id": "
5cwgvd7XlMSZ1mLwH6+aVv
"
},
},
{
{
"__type__": "cc.UITransform",
"__type__": "cc.UITransform",
...
...
assets/Scripts/Scenes/MainGame/MainGame.ts
View file @
95de71a4
...
@@ -139,8 +139,11 @@ export class MainGame extends Scene {
...
@@ -139,8 +139,11 @@ export class MainGame extends Scene {
mainColor
:
BgAndColor
=
null
;
mainColor
:
BgAndColor
=
null
;
randomMainColor
()
{
randomMainColor
()
{
const
index
=
Math
.
floor
(
Math
.
random
()
*
this
.
bgAndColor
.
length
);
// const index = Math.floor(Math.random() * this.bgAndColor.length);
this
.
mainColor
=
this
.
bgAndColor
.
splice
(
index
,
1
,
this
.
mainColor
)[
0
];
// this.mainColor = this.bgAndColor.splice(index, 1, this.mainColor)[0];
this
.
mainColor
=
this
.
bgAndColor
.
splice
(
0
,
1
)[
0
];
this
.
bgAndColor
.
push
(
this
.
mainColor
);
return
this
.
mainColor
;
return
this
.
mainColor
;
}
}
...
@@ -309,7 +312,7 @@ export class MainGame extends Scene {
...
@@ -309,7 +312,7 @@ export class MainGame extends Scene {
{
{
lastZ
:
0
,
lastZ
:
0
,
create
:
false
,
create
:
false
,
interval
:
2
0
,
interval
:
2
5
,
funcName
:
"createRing"
,
funcName
:
"createRing"
,
},
},
]
]
...
...
profiles/v2/packages/reference-image.json
View file @
95de71a4
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"config"
:
{
"config"
:
{
"images"
:
[],
"images"
:
[],
"sceneUUID"
:
{},
"sceneUUID"
:
{},
"scene"
:
"
063b0464-e893-46fd-95f9-73a41f19fd25
"
"scene"
:
"
53947ca7-3484-4b53-800d-509405063d68
"
},
},
"show"
:
false
"show"
:
false
}
}
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