Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Coloring
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
Coloring
Commits
e7c4f3d2
Commit
e7c4f3d2
authored
Sep 03, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 重新开始
parent
dbd51dc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
.DS_Store
.DS_Store
+0
-0
Coloring.meta
assets/Coloring.meta
+15
-1
Coloring.js
assets/Coloring/scene/Coloring.js
+11
-1
No files found.
.DS_Store
View file @
e7c4f3d2
No preview for this file type
assets/Coloring.meta
View file @
e7c4f3d2
{"ver":"1.1.2","uuid":"c35bb2f6-f24a-4850-ae44-643f2fdc7541","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/Coloring/scene/Coloring.js
View file @
e7c4f3d2
...
...
@@ -173,6 +173,9 @@ cc.Class({
cc
.
log
(
"
btnCoolCat
"
);
if
(
this
.
_can_tap
!=
true
)
return
;
if
(
this
.
isGameEnd
)
{
return
;
}
this
.
_can_tap
=
false
;
cc
.
log
(
"
paint 点击
"
);
playDragonBoneAnimation
(
this
.
coolcat
,
'
wrong
'
,
-
1
);
...
...
@@ -481,7 +484,7 @@ cc.Class({
},
showRestartBtn
()
{
return
;
//
return;
const
btn
=
cc
.
find
(
'
Canvas/bg/btnReplay
'
);
if
(
btn
.
canClick
)
{
return
;
...
...
@@ -622,6 +625,8 @@ cc.Class({
console
.
log
(
'
isCanFinish:
'
,
isCanFinish
);
if
(
isCanFinish
)
{
this
.
isGameEnd
=
true
;
this
.
playAudioByUrl
(
this
.
data
.
finishAudio
,()
=>
{
this
.
showRestartBtn
();
onHomeworkFinish
();
...
...
@@ -672,6 +677,11 @@ cc.Class({
let
sprite
=
tooth
;
sprite
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
e
)
=>
{
if
(
this
.
isGameEnd
)
{
return
;
}
console
.
log
(
'
this.isGameEnd:
'
,
this
.
isGameEnd
);
e
.
stopPropagation
();
if
(
this
.
_can_tap
!=
true
)
...
...
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