Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game2048
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
game2048
Commits
90d52136
Commit
90d52136
authored
Apr 26, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
19aa4721
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
4 deletions
+76
-4
output.js
output.js
+22
-1
pro.html
pro.html
+50
-0
QuitPanel.ts
src/panels/QuitPanel.ts
+1
-1
PlayScene.ts
src/scenes/playScene/PlayScene.ts
+3
-2
No files found.
output.js
View file @
90d52136
This diff is collapsed.
Click to expand it.
pro.html
0 → 100644
View file @
90d52136
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
合成大作战
</title>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"full-screen"
content=
"true"
/>
<meta
name=
"screen-orientation"
content=
"portrait"
/>
<meta
name=
"x5-fullscreen"
content=
"true"
/>
<meta
name=
"360-fullscreen"
content=
"true"
/>
<script
src=
"//yun.duiba.com.cn/db_games/libFy/zepto.min.js"
></script>
<!-- 淘宝小程序 -->
<script
type=
"text/javascript"
src=
"https://appx/web-view.min.js"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/activity/sceneHaidilao/vConsole.min.js"
></script>
<style>
html
,
body
{
-ms-touch-action
:
none
;
touch-action
:
none
;
padding
:
0
;
margin
:
0
;
border
:
0
;
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
position
:
absolute
;
background-color
:
#604fe8
;
}
</style>
</head>
<body>
<div
id=
"__loading__"
style=
"position:absolute;left:50%;top:50%;margin-left:-45px;color:#ffffff"
>
拼命加载中...
</div>
<div
id=
"cusEngine"
style=
"line-height:0;font-size:0"
></div>
</body>
<!-- 帧率检测 -->
<!-- <script src="libs/stats.js"></script> -->
<script>
window
[
"develop"
]
=
true
;
//线上设置,资源路径
var
resPath
=
"//yun.duiba.com.cn/db_games/activity/game2048/1587871728/resource/"
</script>
<script
src=
"//yun.duiba.com.cn/db_games/activity/game2048/1587871728/output.js"
></script>
</html>
\ No newline at end of file
src/panels/QuitPanel.ts
View file @
90d52136
...
...
@@ -38,7 +38,7 @@ export class QuitPanel extends Panel {
.
position
.
set
(
398
,
750
)
//退出本关,提交后,出结束弹框,
this
.
addChild
(
new
Button
(
RES
.
getRes
(
"tuichubenguan.png"
)))
.
once
(
MouseEvent
.
CLICK
,
()
=>
{
.
addEventListener
(
MouseEvent
.
CLICK
,
()
=>
{
showWaiting
();
//提交
submit
((
s
,
res
)
=>
{
...
...
src/scenes/playScene/PlayScene.ts
View file @
90d52136
...
...
@@ -985,13 +985,14 @@ export class PlayScene extends Scene {
this
.
containerPool
[
x
][
y
].
addChild
(
ele
)
if
(
num
>
this
.
unlockGrade
)
{
if
(
num
>
this
.
unlockGrade
&&
num
>=
8
)
{
this
.
unlockGrade
=
num
// 显示解锁弹窗
submit
(()
=>
{
},
this
.
score
,
this
.
unlockGrade
,
false
,
true
)
showPanel
(
UnlockPanel
,
{
grade
:
num
})
this
.
unlockGrade
=
num
}
}
}
...
...
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