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
3865d0ef
Commit
3865d0ef
authored
Nov 09, 2024
by
吴江涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推错分支了我勒个豆
parent
9cd2022c
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
210 additions
and
164 deletions
+210
-164
GuideScene.scene
assets/Bundles/GuideScene/GuideScene.scene
+9
-9
HomeScene.scene
assets/Bundles/HomeScene/HomeScene.scene
+114
-81
MainGame.scene
assets/Bundles/MainGame/MainGame.scene
+8
-8
Start.scene
assets/Start/Start.scene
+7
-7
Start.ts
assets/Start/Start.ts
+12
-1
index.ejs
build-templates/web-mobile/index.ejs
+1
-0
index.ejs
preview-template/index.ejs
+1
-1
reference-image.json
profiles/v2/packages/reference-image.json
+1
-1
scene.json
profiles/v2/packages/scene.json
+53
-53
information.json
settings/v2/packages/information.json
+2
-2
project.json
settings/v2/packages/project.json
+2
-1
No files found.
assets/Bundles/GuideScene/GuideScene.scene
View file @
3865d0ef
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 375,
"x": 375,
"y": 81
1.9999999999999
,
"y": 81
2.0000000000001
,
"z": 0
"z": 0
},
},
"_lrot": {
"_lrot": {
...
@@ -200,19 +200,19 @@
...
@@ -200,19 +200,19 @@
"_priority": 1073741824,
"_priority": 1073741824,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight": 81
1.9999999999999
,
"_orthoHeight": 81
2.0000000000001
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r":
0
,
"r":
11
,
"g":
0
,
"g":
5
,
"b":
0
,
"b":
79
,
"a": 255
"a": 255
},
},
"_depth": 1,
"_depth": 1,
"_stencil": 0,
"_stencil": 0,
"_clearFlags":
6
,
"_clearFlags":
7
,
"_rect": {
"_rect": {
"__type__": "cc.Rect",
"__type__": "cc.Rect",
"x": 0,
"x": 0,
...
@@ -514,7 +514,7 @@
...
@@ -514,7 +514,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 750,
"width": 750,
"height": 162
3.9999999999998
"height": 162
4.0000000000002
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -766,7 +766,7 @@
...
@@ -766,7 +766,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 750,
"width": 750,
"height": 162
3.9999999999998
"height": 162
4.0000000000002
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1893,7 +1893,7 @@
...
@@ -1893,7 +1893,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 750,
"width": 750,
"height": 162
3.9999999999998
"height": 162
4.0000000000002
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
...
assets/Bundles/HomeScene/HomeScene.scene
View file @
3865d0ef
This diff is collapsed.
Click to expand it.
assets/Bundles/MainGame/MainGame.scene
View file @
3865d0ef
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 375,
"x": 375,
"y": 812,
"y": 812
.0000000000001
,
"z": 0
"z": 0
},
},
"_lrot": {
"_lrot": {
...
@@ -187,19 +187,19 @@
...
@@ -187,19 +187,19 @@
"_priority": 50000,
"_priority": 50000,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight": 812,
"_orthoHeight": 812
.0000000000001
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r":
0
,
"r":
11
,
"g":
0
,
"g":
5
,
"b":
0
,
"b":
79
,
"a": 255
"a": 255
},
},
"_depth": 1,
"_depth": 1,
"_stencil": 0,
"_stencil": 0,
"_clearFlags":
6
,
"_clearFlags":
7
,
"_rect": {
"_rect": {
"__type__": "cc.Rect",
"__type__": "cc.Rect",
"x": 0,
"x": 0,
...
@@ -251,7 +251,7 @@
...
@@ -251,7 +251,7 @@
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 0,
"x": 0,
"y": 812,
"y": 812
.0000000000001
,
"z": 0
"z": 0
},
},
"_lrot": {
"_lrot": {
...
@@ -1005,7 +1005,7 @@
...
@@ -1005,7 +1005,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 750,
"width": 750,
"height": 1624
"height": 1624
.0000000000002
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
...
assets/Start/Start.scene
View file @
3865d0ef
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 375,
"x": 375,
"y": 812,
"y": 812
.0000000000001
,
"z": 0
"z": 0
},
},
"_lrot": {
"_lrot": {
...
@@ -181,14 +181,14 @@
...
@@ -181,14 +181,14 @@
"_priority": 6553,
"_priority": 6553,
"_fov": 45,
"_fov": 45,
"_fovAxis": 0,
"_fovAxis": 0,
"_orthoHeight": 812,
"_orthoHeight": 812
.0000000000001
,
"_near": 1,
"_near": 1,
"_far": 2000,
"_far": 2000,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r":
0
,
"r":
11
,
"g":
0
,
"g":
5
,
"b":
0
,
"b":
79
,
"a": 255
"a": 255
},
},
"_depth": 1,
"_depth": 1,
...
@@ -393,7 +393,7 @@
...
@@ -393,7 +393,7 @@
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 0,
"x": 0,
"y": 57.
69999999999993
,
"y": 57.
700000000000045
,
"z": 0
"z": 0
},
},
"_lrot": {
"_lrot": {
...
@@ -962,7 +962,7 @@
...
@@ -962,7 +962,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 749.9999999999998,
"width": 749.9999999999998,
"height": 1624
"height": 1624
.0000000000002
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
...
assets/Start/Start.ts
View file @
3865d0ef
import
{
_decorator
,
assetManager
,
Component
,
Label
,
Node
,
Prefab
,
ProgressBar
,
resources
,
}
from
'cc'
;
import
{
_decorator
,
assetManager
,
Component
,
Label
,
Node
,
Prefab
,
ProgressBar
,
ResolutionPolicy
,
resources
,
screen
,
view
,
}
from
'cc'
;
import
{
PREVIEW
}
from
'cc/env'
;
import
{
PREVIEW
}
from
'cc/env'
;
import
{
UIMgr
}
from
"../Module/UIMgr"
;
import
{
UIMgr
}
from
"../Module/UIMgr"
;
import
{
changeScene
,
showPanel
,
showToast
}
from
"db://assets/Module/UIFast"
;
import
{
changeScene
,
showPanel
,
showToast
}
from
"db://assets/Module/UIFast"
;
...
@@ -33,6 +33,17 @@ export class Start extends Component {
...
@@ -33,6 +33,17 @@ export class Start extends Component {
onLoad
()
{
onLoad
()
{
// game.frameRate = _FPS;
// game.frameRate = _FPS;
let
winsize
=
screen
.
windowSize
;
let
ratio
=
winsize
.
width
/
winsize
.
height
;
// let drs = view.getDesignResolutionSize();
// let drsRatio = drs.width/drs.height;
if
(
ratio
>
0.7
)
{
view
.
setResolutionPolicy
(
ResolutionPolicy
.
FIXED_HEIGHT
);
}
else
{
console
.
log
(
"进来了"
);
view
.
setResolutionPolicy
(
ResolutionPolicy
.
FIXED_WIDTH
);
}
// 预览调试时,显示性能统计面板
// 预览调试时,显示性能统计面板
if
(
PREVIEW
)
{
if
(
PREVIEW
)
{
// profiler.showStats();
// profiler.showStats();
...
...
build-templates/web-mobile/index.ejs
View file @
3865d0ef
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
-ms-user-select
:
none
;
-ms-user-select
:
none
;
-khtml-user-select
:
none
;
-khtml-user-select
:
none
;
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
);
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
);
background-color
:
#0b054f
;
}
}
/* Remove spin of input type number */
/* Remove spin of input type number */
...
...
preview-template/index.ejs
View file @
3865d0ef
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<script
type=
"text/javascript"
src=
"https://appx/web-view.min.js"
></script>
<script
type=
"text/javascript"
src=
"https://appx/web-view.min.js"
></script>
</head>
</head>
<body
style=
"overflow: hidden;"
>
<body
style=
"overflow: hidden;
background-color: #0b054f;
"
>
<
%
-
include
(
cocosToolBar
,
{
config:
config
})
%
>
<
%
-
include
(
cocosToolBar
,
{
config:
config
})
%
>
<div
id=
"content"
class=
"content"
style=
"overflow: hidden;"
>
<div
id=
"content"
class=
"content"
style=
"overflow: hidden;"
>
<div
class=
"contentWrap"
>
<div
class=
"contentWrap"
>
...
...
profiles/v2/packages/reference-image.json
View file @
3865d0ef
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"config"
:
{
"config"
:
{
"images"
:
[],
"images"
:
[],
"sceneUUID"
:
{},
"sceneUUID"
:
{},
"scene"
:
"
7b5de2a0-8504-46ba-9019-37a3548ce8e1
"
"scene"
:
"
9e293cde-e27b-4902-808b-e884f3e9da32
"
},
},
"show"
:
false
"show"
:
false
}
}
profiles/v2/packages/scene.json
View file @
3865d0ef
...
@@ -965,31 +965,6 @@
...
@@ -965,31 +965,6 @@
},
},
"scale"
:
0.2579971130259416
"scale"
:
0.2579971130259416
},
},
"04224ebd-adcd-4112-8010-da14ed5ea48a"
:
{
"position"
:
{
"x"
:
42.3255019022979
,
"y"
:
1153.7660120435216
,
"z"
:
5000
},
"rotation"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
,
"w"
:
1
},
"viewCenter"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
},
"contentRect"
:
{
"x"
:
-166.933695420623
,
"y"
:
700.6500967736237
,
"width"
:
174.2456896551724
,
"height"
:
377.3
},
"scale"
:
0.5337486321925865
},
"ff249ea2-131c-46cc-8bb5-e07bfcca3d01"
:
{
"ff249ea2-131c-46cc-8bb5-e07bfcca3d01"
:
{
"position"
:
{
"position"
:
{
"x"
:
25.781532652817866
,
"x"
:
25.781532652817866
,
...
@@ -1190,31 +1165,6 @@
...
@@ -1190,31 +1165,6 @@
},
},
"scale"
:
0.8081151640227069
"scale"
:
0.8081151640227069
},
},
"9e293cde-e27b-4902-808b-e884f3e9da32"
:
{
"position"
:
{
"x"
:
478.3405003429166
,
"y"
:
856.0198583323003
,
"z"
:
5000
},
"rotation"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
,
"w"
:
1
},
"viewCenter"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
},
"contentRect"
:
{
"x"
:
-270.588262040965
,
"y"
:
-175.96859377147348
,
"width"
:
508
,
"height"
:
700
},
"scale"
:
0.339151081861917
},
"a4b435de-dc7c-4f0b-b968-e01f517eb7f6"
:
{
"a4b435de-dc7c-4f0b-b968-e01f517eb7f6"
:
{
"position"
:
{
"position"
:
{
"x"
:
101.18938926939029
,
"x"
:
101.18938926939029
,
...
@@ -1289,6 +1239,56 @@
...
@@ -1289,6 +1239,56 @@
"height"
:
0
"height"
:
0
},
},
"scale"
:
0.22375626773199253
"scale"
:
0.22375626773199253
},
"9e293cde-e27b-4902-808b-e884f3e9da32"
:
{
"position"
:
{
"x"
:
478.3405003429166
,
"y"
:
856.0198583323003
,
"z"
:
5000
},
"rotation"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
,
"w"
:
1
},
"viewCenter"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
},
"contentRect"
:
{
"x"
:
-270.5882620409651
,
"y"
:
-175.96859377147348
,
"width"
:
508
,
"height"
:
700
},
"scale"
:
0.339151081861917
},
"04224ebd-adcd-4112-8010-da14ed5ea48a"
:
{
"position"
:
{
"x"
:
559.0130866172899
,
"y"
:
1474.782036419733
,
"z"
:
5000
},
"rotation"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
,
"w"
:
1
},
"viewCenter"
:
{
"x"
:
0
,
"y"
:
0
,
"z"
:
0
},
"contentRect"
:
{
"x"
:
213.94271763296143
,
"y"
:
727.5896641123327
,
"width"
:
174.2456896551724
,
"height"
:
377.3
},
"scale"
:
0.2524784874575621
}
}
},
},
"camera-uuids"
:
[
"camera-uuids"
:
[
...
@@ -1329,7 +1329,6 @@
...
@@ -1329,7 +1329,6 @@
"e006bcbd-d4b2-4d6e-b86d-b98a06cf9cc7"
,
"e006bcbd-d4b2-4d6e-b86d-b98a06cf9cc7"
,
"1ce93d96-f621-4162-9f51-fbfb066ca238"
,
"1ce93d96-f621-4162-9f51-fbfb066ca238"
,
"063b0464-e893-46fd-95f9-73a41f19fd25"
,
"063b0464-e893-46fd-95f9-73a41f19fd25"
,
"04224ebd-adcd-4112-8010-da14ed5ea48a"
,
"ff249ea2-131c-46cc-8bb5-e07bfcca3d01"
,
"ff249ea2-131c-46cc-8bb5-e07bfcca3d01"
,
"50650cb7-af92-4041-93d7-e8d9a7fa446d"
,
"50650cb7-af92-4041-93d7-e8d9a7fa446d"
,
"8d656426-fb3d-4f9c-a332-22103459c2d4"
,
"8d656426-fb3d-4f9c-a332-22103459c2d4"
,
...
@@ -1338,10 +1337,11 @@
...
@@ -1338,10 +1337,11 @@
"7cae554b-bec7-45e7-a1d4-ec5e84e5688c"
,
"7cae554b-bec7-45e7-a1d4-ec5e84e5688c"
,
"b6ce0806-8608-4249-a153-720d6ed0bd0f"
,
"b6ce0806-8608-4249-a153-720d6ed0bd0f"
,
"0fe5b446-0dca-460d-99f1-cf13098f7777"
,
"0fe5b446-0dca-460d-99f1-cf13098f7777"
,
"9e293cde-e27b-4902-808b-e884f3e9da32"
,
"a4b435de-dc7c-4f0b-b968-e01f517eb7f6"
,
"a4b435de-dc7c-4f0b-b968-e01f517eb7f6"
,
"58af8588-6a46-4cd2-a3e1-23f925f77095"
,
"58af8588-6a46-4cd2-a3e1-23f925f77095"
,
"7b5de2a0-8504-46ba-9019-37a3548ce8e1"
"7b5de2a0-8504-46ba-9019-37a3548ce8e1"
,
"9e293cde-e27b-4902-808b-e884f3e9da32"
,
"04224ebd-adcd-4112-8010-da14ed5ea48a"
],
],
"camera"
:
{
"camera"
:
{
"color"
:
[
"color"
:
[
...
...
settings/v2/packages/information.json
View file @
3865d0ef
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
"enable"
:
true
,
"enable"
:
true
,
"customSplash"
:
{
"customSplash"
:
{
"complete"
:
true
,
"complete"
:
true
,
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
441e6f8e3e7ba0c9581ed7936daee45d
"
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
c8b0f711bb162e709b868ea0782d22de
"
}
}
},
},
"removeSplash"
:
{
"removeSplash"
:
{
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"enable"
:
true
,
"enable"
:
true
,
"removeSplash"
:
{
"removeSplash"
:
{
"complete"
:
true
,
"complete"
:
true
,
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
441e6f8e3e7ba0c9581ed7936daee45d
"
"form"
:
"https://creator-api.cocos.com/api/form/show?sid=
c8b0f711bb162e709b868ea0782d22de
"
}
}
}
}
}
}
...
...
settings/v2/packages/project.json
View file @
3865d0ef
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
"general"
:
{
"general"
:
{
"designResolution"
:
{
"designResolution"
:
{
"width"
:
750
,
"width"
:
750
,
"height"
:
1624
"height"
:
1624
,
"fitHeight"
:
false
},
},
"downloadMaxConcurrency"
:
20
,
"downloadMaxConcurrency"
:
20
,
"renderPipeline"
:
"c7e748e8-be82-4f6f-b2c0-085b604e40e5"
"renderPipeline"
:
"c7e748e8-be82-4f6f-b2c0-085b604e40e5"
...
...
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