Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Cocos-GoldenMiner
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-GoldenMiner
Commits
9bb07dfe
Commit
9bb07dfe
authored
Apr 18, 2023
by
Friends233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重置游戏复位
parent
01475623
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
28 deletions
+31
-28
GameScene.ts
assets/Script/GameScene.ts
+25
-22
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/Script/GameScene.ts
View file @
9bb07dfe
...
@@ -145,24 +145,24 @@ export default class GameScene extends cc.Component {
...
@@ -145,24 +145,24 @@ export default class GameScene extends cc.Component {
{
{
level
:
1
,
level
:
1
,
/** 目标数量 */
/** 目标数量 */
num
:
4
,
num
:
1
,
/** 倒计时 */
/** 倒计时 */
cds
:
50
,
cds
:
50
,
},
},
{
//
{
level
:
1
,
//
level: 1,
/** 目标数量 */
//
/** 目标数量 */
num
:
5
,
//
num: 5,
/** 倒计时 */
//
/** 倒计时 */
cds
:
30
,
//
cds: 30,
},
//
},
{
//
{
level
:
1
,
//
level: 1,
/** 目标数量 */
//
/** 目标数量 */
num
:
8
,
//
num: 8,
/** 倒计时 */
//
/** 倒计时 */
cds
:
30
,
//
cds: 30,
}
//
}
]
]
})
})
}
}
...
@@ -220,9 +220,11 @@ export default class GameScene extends cc.Component {
...
@@ -220,9 +220,11 @@ export default class GameScene extends cc.Component {
this
.
isStartGame
=
false
this
.
isStartGame
=
false
this
.
speedMultiplier
=
1
this
.
speedMultiplier
=
1
this
.
clipTarget
=
null
this
.
clipTarget
=
null
this
.
setClipState
(
CLIP_STATE
.
DEFAULT
)
this
.
setClipState
(
CLIP_STATE
.
DEFAULT
,
()
=>
{
this
.
clip
.
y
=
-
41
cc
.
find
(
'clipMask/clipWrp'
,
this
.
node
).
angle
=
0
cc
.
find
(
'clipMask/clipWrp'
,
this
.
node
).
angle
=
0
cc
.
find
(
'clipMask/clipWrp'
,
this
.
node
).
getComponent
(
cc
.
Animation
).
stop
()
})
this
.
clip
.
y
=
-
41
}
}
/** 爪子碰撞事件 */
/** 爪子碰撞事件 */
...
@@ -255,11 +257,11 @@ export default class GameScene extends cc.Component {
...
@@ -255,11 +257,11 @@ export default class GameScene extends cc.Component {
this
.
clip
.
active
=
false
this
.
clip
.
active
=
false
// 有道具销毁道具
// 有道具销毁道具
if
(
this
.
clipTarget
)
{
if
(
this
.
clipTarget
)
{
this
.
clipTarget
.
getComponent
(
'propMove'
).
die
(()
=>
{
// 加分道具
// 加分道具
if
(
this
.
clipTarget
.
getComponent
(
cc
.
Collider
).
tag
==
1
)
{
if
(
this
.
clipTarget
.
getComponent
(
cc
.
Collider
).
tag
==
1
)
{
this
.
setStarProc
()
this
.
setStarProc
()
}
}
this
.
clipTarget
.
getComponent
(
'propMove'
).
die
(()
=>
{
this
.
clipTarget
=
null
this
.
clipTarget
=
null
this
.
clipAni
=
false
this
.
clipAni
=
false
// 场面上没有剩余加分道具,刷新道具舞台
// 场面上没有剩余加分道具,刷新道具舞台
...
@@ -267,7 +269,7 @@ export default class GameScene extends cc.Component {
...
@@ -267,7 +269,7 @@ export default class GameScene extends cc.Component {
this
.
refreshStageProps
()
this
.
refreshStageProps
()
}
}
})
})
}
else
{
}
else
{
this
.
clipAni
=
false
this
.
clipAni
=
false
}
}
break
;
break
;
...
@@ -366,6 +368,7 @@ export default class GameScene extends cc.Component {
...
@@ -366,6 +368,7 @@ export default class GameScene extends cc.Component {
// 达到目标
// 达到目标
if
(
this
.
starNum
>=
this
.
levelObjectives
)
{
if
(
this
.
starNum
>=
this
.
levelObjectives
)
{
this
.
unschedule
(
this
.
startCd
)
this
.
unschedule
(
this
.
startCd
)
console
.
log
(
'pass'
)
exportEvent
.
fire
(
CUSTOM_EVENT
.
PASS_LEVEL
,
{
exportEvent
.
fire
(
CUSTOM_EVENT
.
PASS_LEVEL
,
{
...
this
.
gameConfig
.
LevelInfo
[
this
.
actLevel
],
...
this
.
gameConfig
.
LevelInfo
[
this
.
actLevel
],
score
:
this
.
starNum
,
score
:
this
.
starNum
,
...
...
build/web-mobile/assets/main/index.js
View file @
9bb07dfe
This diff is collapsed.
Click to expand it.
build/web-mobile/index.html
View file @
9bb07dfe
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<!-- <script src="//yun.duiba.com.cn/db_games/libs0924/svgaParser.minWeb.js" crossorigin="anonymous"></script>-->
<!-- <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/168180
1455800
/style-mobile.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://yun.duiba.com.cn/db_games/ccc_game/template/168180
3569645
/style-mobile.css"
/>
<style>
<style>
...
@@ -90,9 +90,9 @@
...
@@ -90,9 +90,9 @@
</div>
</div>
</div>
</div>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/168180
1455800
/src/settings.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/168180
3569645
/src/settings.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/168180
1455800
/main.js"
charset=
"utf-8"
></script>
<script
src=
"https://yun.duiba.com.cn/db_games/ccc_game/template/168180
3569645
/main.js"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
(
function
()
{
(
function
()
{
...
...
build/web-mobile/main.js
View file @
9bb07dfe
window
.
__remoteUrl__
=
"https://yun.duiba.com.cn/db_games/ccc_game/template/168180
1455800
/"
;
window
.
__remoteUrl__
=
"https://yun.duiba.com.cn/db_games/ccc_game/template/168180
3569645
/"
;
window
.
__remoteAssets__
=
window
.
__remoteUrl__
+
"assets/"
;
window
.
__remoteAssets__
=
window
.
__remoteUrl__
+
"assets/"
;
window
.
__version__
=
168180
1455800
;
window
.
__version__
=
168180
3569645
;
window
.
__ENV__
=
"prod"
;
window
.
__ENV__
=
"prod"
;
window
.
boot
=
function
()
{
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