Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Cocos-1010
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
等吃饭
Cocos-1010
Commits
66b5250b
Commit
66b5250b
authored
May 27, 2023
by
Friends233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
游戏结束
parent
2f9e4436
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
431 additions
and
51 deletions
+431
-51
Game.fire
assets/Scenes/Game.fire
+416
-42
GameScene.ts
assets/Script/GameScene.ts
+8
-2
08fed6e4f.json
build/web-mobile/assets/main/import/08/08fed6e4f.json
+1
-1
index.js
build/web-mobile/assets/main/index.js
+1
-1
index.html
build/web-mobile/index.html
+3
-3
main.js
build/web-mobile/main.js
+2
-2
No files found.
assets/Scenes/Game.fire
View file @
66b5250b
This diff is collapsed.
Click to expand it.
assets/Script/GameScene.ts
View file @
66b5250b
...
...
@@ -30,6 +30,8 @@ export default class GameScene extends cc.Component {
/** 所有能拖动的块管理器 */
allBlcokManagerNode
:
cc
.
Node
[]
=
[]
isGameOver
=
false
protected
onLoad
():
void
{
/** 开启碰撞检测 */
...
...
@@ -122,7 +124,8 @@ export default class GameScene extends cc.Component {
start
:
'startGuide'
,
init
:
'testInit'
,
clear
:
'setDefaultBlock'
,
radom
:
'testRadom'
radom
:
'testRadom'
,
submit
:
'gameOver'
}
testNode
.
children
.
forEach
((
n
)
=>
{
const
event
=
this
?.[
testEventMap
[
n
.
name
]]
...
...
@@ -176,6 +179,7 @@ export default class GameScene extends cc.Component {
}
this
.
score
=
0
this
.
setBlockNum
=
0
this
.
isGameOver
=
false
this
.
setLable
(
'score'
,
0
)
this
.
setLable
(
'bestScore'
,
'历史最高分:'
+
(
con
.
bestScore
||
0
))
this
.
setLable
(
'goldCoin'
,
(
con
.
goldCoin
||
0
)
+
''
)
...
...
@@ -211,7 +215,9 @@ export default class GameScene extends cc.Component {
if
(
this
.
setBlockNum
>=
3
)
{
this
.
refreshStageProps
()
}
this
.
isCheckGameOver
()
this
.
scheduleOnce
(()
=>
{
this
.
isCheckGameOver
()
},
0.8
)
if
(
this
.
isGuide
)
{
this
.
setBlockNum
--
this
.
isGuide
=
false
...
...
build/web-mobile/assets/main/import/08/08fed6e4f.json
View file @
66b5250b
This diff is collapsed.
Click to expand it.
build/web-mobile/assets/main/index.js
View file @
66b5250b
This diff is collapsed.
Click to expand it.
build/web-mobile/index.html
View file @
66b5250b
...
...
@@ -40,7 +40,7 @@
<!-- <script src="//yun.duiba.com.cn/db_games/libs0924/svgaParser.minWeb.js" crossorigin="anonymous"></script>-->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16850
65827889
/style-mobile.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16850
76323006
/style-mobile.css"
/>
<style>
...
...
@@ -90,9 +90,9 @@
</div>
</div>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16850
65827889
/src/settings.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16850
76323006
/src/settings.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16850
65827889
/main.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16850
76323006
/main.js"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
>
(
function
()
{
...
...
build/web-mobile/main.js
View file @
66b5250b
window
.
__remoteUrl__
=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16850
65827889
/"
;
window
.
__remoteUrl__
=
"https://yun.duiba.com.cn/db_games/ccc_game/template/16850
76323006
/"
;
window
.
__remoteAssets__
=
window
.
__remoteUrl__
+
"assets/"
;
window
.
__version__
=
16850
65827889
;
window
.
__version__
=
16850
76323006
;
window
.
__ENV__
=
"prod"
;
window
.
boot
=
function
()
{
...
...
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