Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
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
MingSnake_241120
Commits
11781193
Commit
11781193
authored
Dec 11, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
4fa461c8
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1368 additions
and
323 deletions
+1368
-323
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+1275
-253
阶段一.png
assets/Bundles/MainGame/png/横幅/阶段一.png
+0
-0
阶段一.png.meta
assets/Bundles/MainGame/png/横幅/阶段一.png.meta
+34
-34
阶段二.png
assets/Bundles/MainGame/png/横幅/阶段二.png
+0
-0
阶段二.png.meta
assets/Bundles/MainGame/png/横幅/阶段二.png.meta
+34
-34
Target.ts
assets/Scripts/Scenes/MainGame/Components/Target.ts
+25
-2
No files found.
assets/Bundles/MainGame/MainGame.scene
View file @
11781193
This diff is collapsed.
Click to expand it.
assets/Bundles/MainGame/png/横幅/阶段一.png
View replaced file @
4fa461c8
View file @
11781193
31.9 KB
|
W:
|
H:
10.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/Bundles/MainGame/png/横幅/阶段一.png.meta
View file @
11781193
...
...
@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "
21efbe66-8698-46c0-9f61-bc692c8dd437
",
"uuid": "
8eab1323-3634-42c9-be4e-2256a31185be
",
"files": [
".json",
".png"
...
...
@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "
21efbe66-8698-46c0-9f61-bc692c8dd437
@6c48a",
"uuid": "
8eab1323-3634-42c9-be4e-2256a31185be
@6c48a",
"displayName": "阶段一",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "
21efbe66-8698-46c0-9f61-bc692c8dd437
",
"imageUuidOrDatabaseUri": "
8eab1323-3634-42c9-be4e-2256a31185be
",
"isUuid": true,
"visible": false,
"minfilter": "linear",
...
...
@@ -34,7 +34,7 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "
21efbe66-8698-46c0-9f61-bc692c8dd437
@f9941",
"uuid": "
8eab1323-3634-42c9-be4e-2256a31185be
@f9941",
"displayName": "阶段一",
"id": "f9941",
"name": "spriteFrame",
...
...
@@ -43,13 +43,13 @@
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY":
-6
,
"offsetY":
0
,
"trimX": 0,
"trimY":
72
,
"width":
1620
,
"height":
450
,
"rawWidth":
1620
,
"rawHeight":
582
,
"trimY":
0
,
"width":
313
,
"height":
117
,
"rawWidth":
313
,
"rawHeight":
117
,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
...
...
@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-
810
,
-
22
5,
-
156.5
,
-
58.
5,
0,
810
,
-
22
5,
156.5
,
-
58.
5,
0,
-
810
,
22
5,
-
156.5
,
58.
5,
0,
810
,
22
5,
156.5
,
58.
5,
0
],
"indexes": [
...
...
@@ -84,37 +84,37 @@
],
"uv": [
0,
510
,
1620
,
510
,
117
,
313
,
117
,
0,
6
0,
1620
,
6
0
0,
313
,
0
],
"nuv": [
0,
0
.10309278350515463
,
0,
1,
0.10309278350515463,
0,
0.8762886597938144,
0,
1,
1,
0.8762886597938144
1
],
"minPos": [
-
810
,
-
22
5,
-
156.5
,
-
58.
5,
0
],
"maxPos": [
810
,
22
5,
156.5
,
58.
5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "
21efbe66-8698-46c0-9f61-bc692c8dd437
@6c48a",
"imageUuidOrDatabaseUri": "
8eab1323-3634-42c9-be4e-2256a31185be
@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
...
...
@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "
21efbe66-8698-46c0-9f61-bc692c8dd437
@6c48a"
"redirect": "
8eab1323-3634-42c9-be4e-2256a31185be
@6c48a"
}
}
assets/Bundles/MainGame/png/横幅/阶段二.png
View replaced file @
4fa461c8
View file @
11781193
32.9 KB
|
W:
|
H:
10.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/Bundles/MainGame/png/横幅/阶段二.png.meta
View file @
11781193
...
...
@@ -2,7 +2,7 @@
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "
e5f47f46-1a47-4768-8a93-9be94a13ce63
",
"uuid": "
41b51755-7b02-4f70-a04f-f3730b56b605
",
"files": [
".json",
".png"
...
...
@@ -10,14 +10,14 @@
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "
e5f47f46-1a47-4768-8a93-9be94a13ce63
@6c48a",
"uuid": "
41b51755-7b02-4f70-a04f-f3730b56b605
@6c48a",
"displayName": "阶段二",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "
e5f47f46-1a47-4768-8a93-9be94a13ce63
",
"imageUuidOrDatabaseUri": "
41b51755-7b02-4f70-a04f-f3730b56b605
",
"isUuid": true,
"visible": false,
"minfilter": "linear",
...
...
@@ -34,7 +34,7 @@
},
"f9941": {
"importer": "sprite-frame",
"uuid": "
e5f47f46-1a47-4768-8a93-9be94a13ce63
@f9941",
"uuid": "
41b51755-7b02-4f70-a04f-f3730b56b605
@f9941",
"displayName": "阶段二",
"id": "f9941",
"name": "spriteFrame",
...
...
@@ -43,13 +43,13 @@
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY":
-6
,
"offsetY":
0
,
"trimX": 0,
"trimY":
102
,
"width":
1620
,
"height":
450
,
"rawWidth":
1620
,
"rawHeight":
642
,
"trimY":
0
,
"width":
313
,
"height":
117
,
"rawWidth":
313
,
"rawHeight":
117
,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
...
...
@@ -61,17 +61,17 @@
"meshType": 0,
"vertices": {
"rawPosition": [
-
810
,
-
22
5,
-
156.5
,
-
58.
5,
0,
810
,
-
22
5,
156.5
,
-
58.
5,
0,
-
810
,
22
5,
-
156.5
,
58.
5,
0,
810
,
22
5,
156.5
,
58.
5,
0
],
"indexes": [
...
...
@@ -84,37 +84,37 @@
],
"uv": [
0,
540
,
1620
,
540
,
117
,
313
,
117
,
0,
9
0,
1620
,
9
0
0,
313
,
0
],
"nuv": [
0,
0
.14018691588785046
,
0,
1,
0.14018691588785046,
0,
0.8411214953271028,
0,
1,
1,
0.8411214953271028
1
],
"minPos": [
-
810
,
-
22
5,
-
156.5
,
-
58.
5,
0
],
"maxPos": [
810
,
22
5,
156.5
,
58.
5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "
e5f47f46-1a47-4768-8a93-9be94a13ce63
@6c48a",
"imageUuidOrDatabaseUri": "
41b51755-7b02-4f70-a04f-f3730b56b605
@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
...
...
@@ -129,6 +129,6 @@
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "
e5f47f46-1a47-4768-8a93-9be94a13ce63
@6c48a"
"redirect": "
41b51755-7b02-4f70-a04f-f3730b56b605
@6c48a"
}
}
assets/Scripts/Scenes/MainGame/Components/Target.ts
View file @
11781193
import
{
_decorator
,
Component
,
easing
,
Graphics
,
Label
,
Animation
,
misc
,
Node
,
Tween
,
tween
,
v3
}
from
"cc"
;
import
{
_decorator
,
Component
,
easing
,
Graphics
,
Label
,
Animation
,
misc
,
Node
,
Tween
,
tween
,
v3
,
UIOpacity
}
from
"cc"
;
import
{
Global
}
from
"../Global"
;
import
Svga
from
"../../../../Component/Svga/Svga"
;
const
{
ccclass
,
property
,
executeInEditMode
}
=
_decorator
;
...
...
@@ -22,6 +23,11 @@ export class Target extends Component {
@
property
(
Node
)
mask
:
Node
=
null
;
@
property
(
Node
)
svga
:
Node
=
null
;
@
property
(
Node
)
bannerBg
:
Node
=
null
;
@
property
(
Node
)
banner
:
Node
=
null
;
@
property
([
Node
])
bannerArr
:
Node
[]
=
[];
constructor
()
{
...
...
@@ -51,8 +57,23 @@ export class Target extends Component {
async
showBanner
(
bannerNode
:
Node
)
{
await
new
Promise
<
void
>
((
resolve
)
=>
{
bannerNode
.
active
=
true
;
this
.
bannerBg
.
active
=
false
;
this
.
banner
.
active
=
true
;
this
.
mask
.
active
=
true
;
tween
(
bannerNode
)
this
.
svga
.
active
=
true
;
this
.
svga
.
getComponent
(
Svga
).
play
();
const
bannerOpacity
=
this
.
banner
.
getComponent
(
UIOpacity
);
bannerOpacity
.
opacity
=
0
;
tween
(
bannerOpacity
)
.
to
(
0.466
,
{
opacity
:
255
})
.
call
(()
=>
{
this
.
svga
.
active
=
false
;
this
.
bannerBg
.
active
=
true
;
})
.
start
();
tween
(
this
.
banner
)
.
delay
(
2.666
)
.
to
(
0.666
,
{
position
:
v3
(
0
,
345
,
0
),
...
...
@@ -60,7 +81,9 @@ export class Target extends Component {
},
{
easing
:
easing
.
quadInOut
})
.
delay
(
0.1
)
.
call
(()
=>
{
this
.
banner
.
active
=
false
;
this
.
mask
.
active
=
false
;
this
.
svga
.
active
=
false
;
bannerNode
.
active
=
false
;
resolve
();
})
...
...
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