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
1d2f60d0
Commit
1d2f60d0
authored
Nov 09, 2024
by
吴江涛
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daily_20241109_fit
parent
9cd2022c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
123 additions
and
78 deletions
+123
-78
HomeScene.scene
assets/Bundles/HomeScene/HomeScene.scene
+106
-73
Start.ts
assets/Start/Start.ts
+12
-1
reference-image.json
profiles/v2/packages/reference-image.json
+1
-1
information.json
settings/v2/packages/information.json
+2
-2
project.json
settings/v2/packages/project.json
+2
-1
No files found.
assets/Bundles/HomeScene/HomeScene.scene
View file @
1d2f60d0
This diff is collapsed.
Click to expand it.
assets/Start/Start.ts
View file @
1d2f60d0
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
{
UIMgr
}
from
"../Module/UIMgr"
;
import
{
changeScene
,
showPanel
,
showToast
}
from
"db://assets/Module/UIFast"
;
...
...
@@ -33,6 +33,17 @@ export class Start extends Component {
onLoad
()
{
// 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
)
{
// profiler.showStats();
...
...
profiles/v2/packages/reference-image.json
View file @
1d2f60d0
...
...
@@ -3,7 +3,7 @@
"config"
:
{
"images"
:
[],
"sceneUUID"
:
{},
"scene"
:
"
7b5de2a0-8504-46ba-9019-37a3548ce8e1
"
"scene"
:
"
04224ebd-adcd-4112-8010-da14ed5ea48a
"
},
"show"
:
false
}
settings/v2/packages/information.json
View file @
1d2f60d0
...
...
@@ -7,7 +7,7 @@
"enable"
:
true
,
"customSplash"
:
{
"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"
:
{
...
...
@@ -16,7 +16,7 @@
"enable"
:
true
,
"removeSplash"
:
{
"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 @
1d2f60d0
...
...
@@ -3,7 +3,8 @@
"general"
:
{
"designResolution"
:
{
"width"
:
750
,
"height"
:
1624
"height"
:
1624
,
"fitHeight"
:
false
},
"downloadMaxConcurrency"
:
20
,
"renderPipeline"
:
"c7e748e8-be82-4f6f-b2c0-085b604e40e5"
...
...
邱旭
@haiyoucuv
mentioned in commit
ce69965c
·
Nov 11, 2024
mentioned in commit
ce69965c
mentioned in commit ce69965c30e7a05b11306e32dee8972231700ecd
Toggle commit list
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