Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hzlh-beautifulFunFestival-snake-20241222
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
hzlh-beautifulFunFestival-snake-20241222
Commits
0b7db6f0
Commit
0b7db6f0
authored
Jan 20, 2025
by
俞嘉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 白屏问题
parent
4091657d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
79 additions
and
12 deletions
+79
-12
Fixed.ts
...beautifulFunFestival-snake-20241222/assets/Start/Fixed.ts
+55
-0
Fixed.ts.meta
...ifulFunFestival-snake-20241222/assets/Start/Fixed.ts.meta
+9
-0
Start.ts
...beautifulFunFestival-snake-20241222/assets/Start/Start.ts
+3
-0
index.html
...fulFunFestival-snake-20241222/build/web-mobile/index.html
+11
-11
coop_frontVariable.query.json
...41222/preview-template/mock/coop_frontVariable.query.json
+1
-1
No files found.
hzlh-beautifulFunFestival-snake-20241222/assets/Start/Fixed.ts
0 → 100644
View file @
0b7db6f0
import
{
assetManager
,
getError
}
from
"cc"
;
export
function
initFixed
()
{
assetManager
.
downloader
.
downloadDomImage
=
function
downloadDomImage
(
url
:
string
,
options
:
Record
<
string
,
any
>
,
onComplete
:
((
err
:
Error
|
null
,
data
?:
HTMLImageElement
|
null
)
=>
void
),
):
HTMLImageElement
{
const
img
=
new
window
.
Image
();
// NOTE: on xiaomi platform, we need to force setting img.crossOrigin as 'anonymous'
if
(
location
.
protocol
!==
"file:"
)
{
// img.crossOrigin = 'anonymous';
}
if
(
location
.
hostname
==
"localhost"
){
img
.
crossOrigin
=
'anonymous'
;
}
function
loadCallback
():
void
{
img
.
removeEventListener
(
"load"
,
loadCallback
);
img
.
removeEventListener
(
"error"
,
errorCallback
);
if
(
onComplete
)
{
onComplete
(
null
,
img
);
}
}
function
errorCallback
():
void
{
img
.
removeEventListener
(
"load"
,
loadCallback
);
img
.
removeEventListener
(
"error"
,
errorCallback
);
if
(
onComplete
)
{
onComplete
(
new
Error
(
getError
(
4930
,
url
)));
}
}
img
.
addEventListener
(
"load"
,
loadCallback
);
img
.
addEventListener
(
"error"
,
errorCallback
);
img
.
src
=
url
;
return
img
;
};
const
types
=
[
".png"
,
".jpg"
,
".bmp"
,
".jpeg"
,
".gif"
,
".ico"
,
".tiff"
,
".webp"
,
".image"
,
".pvr"
,
".pkm"
,
".astc"
,
];
types
.
forEach
((
type
)
=>
{
assetManager
.
downloader
.
register
(
type
,
assetManager
.
downloader
.
downloadDomImage
);
});
}
hzlh-beautifulFunFestival-snake-20241222/assets/Start/Fixed.ts.meta
0 → 100644
View file @
0b7db6f0
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "cca334f4-8d82-4ac3-bb05-0e67e7630aa4",
"files": [],
"subMetas": {},
"userData": {}
}
hzlh-beautifulFunFestival-snake-20241222/assets/Start/Start.ts
View file @
0b7db6f0
...
...
@@ -22,6 +22,7 @@ import { getPreLoadList, preload } from "../Scripts/Utils/LoaderTools";
import
{
runMainPage
}
from
"../Scripts/Scenes/runMain/runMainPage"
;
import
ShareCenter
from
"../Scripts/ShareCenter"
;
import
{
initWx
}
from
"../Scripts/Utils/Share"
;
import
{
initFixed
}
from
"./Fixed"
;
const
{
ccclass
,
property
}
=
_decorator
;
...
...
@@ -42,6 +43,8 @@ export class Start extends Component {
async
onLoad
()
{
// game.frameRate = _FPS;
initFixed
();
// 预览调试时,显示性能统计面板
if
(
PREVIEW
)
{
profiler
.
showStats
();
...
...
hzlh-beautifulFunFestival-snake-20241222/build/web-mobile/index.html
View file @
0b7db6f0
...
...
@@ -106,12 +106,12 @@
}
</style>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/custom.css"
/>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/src/assets/plugin/zepto.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/src/assets/plugin/declare-process.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/src/assets/plugin/SVGA.Lite.v2.1.1.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/src/assets/plugin/jszip.min.v3.10.1.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/custom.css"
/>
<!-- <script src="//yun-duiba-credits-test.duibatest.com.cn/TNGD_GAMES/libs/eruda.min.js"></script>-->
<!-- <script>eruda.init()</script>-->
...
...
@@ -125,20 +125,20 @@
</div>
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/aurora/assets/03cc8b25df7f900745f5db17effa0eccc2ae724e.js"
></script>
<!-- Import map -->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<!--<script src="https://yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>-->
<script
type=
"systemjs-importmap"
charset=
"utf-8"
>
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/cocos-js/cc.js"
}}
{
"imports"
:{
"cc"
:
"//yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/cocos-js/cc.js"
}}
</script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/173
6691204400
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/173
7368104075
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
})
</script>
...
...
hzlh-beautifulFunFestival-snake-20241222/preview-template/mock/coop_frontVariable.query.json
View file @
0b7db6f0
...
...
@@ -35,7 +35,7 @@
"thumbnail"
:
"https://yun.duiba.com.cn/polaris/thumb.68900332d31453cda9bdf783b9ef7e7042c3c6ac.png"
}
],
"bindCardUrl"
:
"{
\"
appUrl
\"
:
\"
8
0
\"
,
\"
weixinUrl
\"
:
\"
80
\"
}"
,
"bindCardUrl"
:
"{
\"
appUrl
\"
:
\"
9
0
\"
,
\"
weixinUrl
\"
:
\"
80
\"
}"
,
"appKey"
:
"8888"
,
"centerUrl"
:
"https://activity.m.duiba.com.cn/customShare/share?id=Did1NTQ4NDc"
}
...
...
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