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
54c29096
Commit
54c29096
authored
Sep 13, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传
parent
82aa9001
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
896 additions
and
189 deletions
+896
-189
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+2
-2
ManGame.pac.meta
assets/Bundles/MainGame/png/ManGame.pac.meta
+2
-2
GameMgr.ts
assets/Scripts/GameMgr.ts
+7
-2
NoPrizePanel.ts
assets/Scripts/Panels/NoPrizePanel.ts
+8
-1
GuideScene.scene
assets/resources/GuideScene/GuideScene.scene
+2
-2
guide2top.png
assets/resources/GuideScene/png/guide2top.png
+0
-0
guide2top.png.meta
assets/resources/GuideScene/png/guide2top.png.meta
+10
-10
NoPrizePanel.prefab
assets/resources/NoPrizePanel/NoPrizePanel.prefab
+731
-170
bg.png
assets/resources/NoPrizePanel/img/bg.png
+0
-0
box.png
assets/resources/NoPrizePanel/img/box.png
+0
-0
box.png.meta
assets/resources/NoPrizePanel/img/box.png.meta
+134
-0
No files found.
assets/Bundles/MainGame/MainGame.scene
View file @
54c29096
...
@@ -343,7 +343,7 @@
...
@@ -343,7 +343,7 @@
"__prefab": null,
"__prefab": null,
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
110.66395568847656
,
"width":
96.26396179199219
,
"height": 45.36
"height": 45.36
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -373,7 +373,7 @@
...
@@ -373,7 +373,7 @@
"b": 255,
"b": 255,
"a": 255
"a": 255
},
},
"_string": "
scores
",
"_string": "
Score
",
"_horizontalAlign": 1,
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 36,
"_actualFontSize": 36,
...
...
assets/Bundles/MainGame/png/ManGame.pac.meta
View file @
54c29096
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
],
],
"subMetas": {},
"subMetas": {},
"userData": {
"userData": {
"maxWidth":
4096
,
"maxWidth":
2048
,
"maxHeight":
4096
,
"maxHeight":
2048
,
"padding": 2,
"padding": 2,
"allowRotation": true,
"allowRotation": true,
"forceSquared": false,
"forceSquared": false,
...
...
assets/Scripts/GameMgr.ts
View file @
54c29096
...
@@ -69,9 +69,14 @@ export default class GameMgr {
...
@@ -69,9 +69,14 @@ export default class GameMgr {
hideWaiting
();
hideWaiting
();
if
(
!
success
)
{
if
(
!
success
)
{
changeScene
(
HomeScene
);
// changeScene(HomeScene);
showPanel
(
NoPrizePanel
,
{
highest
:
score
,
score
,
isError
:
true
,
});
return
false
;
return
false
;
}
}
...
...
assets/Scripts/Panels/NoPrizePanel.ts
View file @
54c29096
...
@@ -19,6 +19,10 @@ export default class NoPrizePanel extends Panel {
...
@@ -19,6 +19,10 @@ export default class NoPrizePanel extends Panel {
@
property
(
Label
)
scoreLabel
:
Label
=
null
;
@
property
(
Label
)
scoreLabel
:
Label
=
null
;
@
property
(
Label
)
highestLabel
:
Label
=
null
;
@
property
(
Label
)
highestLabel
:
Label
=
null
;
@
property
(
Node
)
box
:
Node
=
null
;
@
property
(
Node
)
errorTip
:
Node
=
null
;
onLoad
()
{
onLoad
()
{
this
.
closeBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
onClose
,
this
);
this
.
closeBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
onClose
,
this
);
this
.
againBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickAgain
,
this
);
this
.
againBtn
.
on
(
Button
.
EventType
.
CLICK
,
this
.
clickAgain
,
this
);
...
@@ -26,10 +30,13 @@ export default class NoPrizePanel extends Panel {
...
@@ -26,10 +30,13 @@ export default class NoPrizePanel extends Panel {
}
}
async
start
()
{
async
start
()
{
const
{
highest
,
score
}
=
this
.
data
;
const
{
highest
,
score
,
isError
}
=
this
.
data
;
this
.
highestLabel
.
string
=
highest
;
this
.
highestLabel
.
string
=
highest
;
this
.
scoreLabel
.
string
=
score
;
this
.
scoreLabel
.
string
=
score
;
this
.
box
.
active
=
!
isError
;
this
.
errorTip
.
active
=
isError
;
}
}
clickRank
=
()
=>
{
clickRank
=
()
=>
{
...
...
assets/resources/GuideScene/GuideScene.scene
View file @
54c29096
...
@@ -402,7 +402,7 @@
...
@@ -402,7 +402,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 113,
"width": 113,
"height": 1
35
"height": 1
41
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1030,7 +1030,7 @@
...
@@ -1030,7 +1030,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 113,
"width": 113,
"height": 1
35
"height": 1
41
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
...
assets/resources/GuideScene/png/guide2top.png
View replaced file @
82aa9001
View file @
54c29096
3.46 KB
|
W:
|
H:
3.5 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/resources/GuideScene/png/guide2top.png.meta
View file @
54c29096
...
@@ -47,9 +47,9 @@
...
@@ -47,9 +47,9 @@
"trimX": 0,
"trimX": 0,
"trimY": 0,
"trimY": 0,
"width": 113,
"width": 113,
"height": 1
35
,
"height": 1
41
,
"rawWidth": 113,
"rawWidth": 113,
"rawHeight": 1
35
,
"rawHeight": 1
41
,
"borderTop": 0,
"borderTop": 0,
"borderBottom": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderLeft": 0,
...
@@ -62,16 +62,16 @@
...
@@ -62,16 +62,16 @@
"vertices": {
"vertices": {
"rawPosition": [
"rawPosition": [
-56.5,
-56.5,
-
67
.5,
-
70
.5,
0,
0,
56.5,
56.5,
-
67
.5,
-
70
.5,
0,
0,
-56.5,
-56.5,
67
.5,
70
.5,
0,
0,
56.5,
56.5,
67
.5,
70
.5,
0
0
],
],
"indexes": [
"indexes": [
...
@@ -84,9 +84,9 @@
...
@@ -84,9 +84,9 @@
],
],
"uv": [
"uv": [
0,
0,
1
35
,
1
41
,
113,
113,
1
35
,
1
41
,
0,
0,
0,
0,
113,
113,
...
@@ -104,12 +104,12 @@
...
@@ -104,12 +104,12 @@
],
],
"minPos": [
"minPos": [
-56.5,
-56.5,
-
67
.5,
-
70
.5,
0
0
],
],
"maxPos": [
"maxPos": [
56.5,
56.5,
67
.5,
70
.5,
0
0
]
]
},
},
...
...
assets/resources/NoPrizePanel/NoPrizePanel.prefab
View file @
54c29096
This diff is collapsed.
Click to expand it.
assets/resources/NoPrizePanel/img/bg.png
View replaced file @
82aa9001
View file @
54c29096
232 KB
|
W:
|
H:
154 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/resources/NoPrizePanel/img/box.png
0 → 100644
View file @
54c29096
88.6 KB
assets/resources/NoPrizePanel/img/box.png.meta
0 → 100644
View file @
54c29096
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "14037985-f5f2-424b-a8ad-32376f086989",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "14037985-f5f2-424b-a8ad-32376f086989@6c48a",
"displayName": "box",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "14037985-f5f2-424b-a8ad-32376f086989",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "14037985-f5f2-424b-a8ad-32376f086989@f9941",
"displayName": "box",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 304,
"height": 244,
"rawWidth": 304,
"rawHeight": 244,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-152,
-122,
0,
152,
-122,
0,
-152,
122,
0,
152,
122,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
244,
304,
244,
0,
0,
304,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-152,
-122,
0
],
"maxPos": [
152,
122,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "14037985-f5f2-424b-a8ad-32376f086989@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "14037985-f5f2-424b-a8ad-32376f086989@6c48a"
}
}
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