Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FT_12
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
FT_12
Commits
c8ebe5ab
Commit
c8ebe5ab
authored
Dec 31, 2020
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
10f9b281
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
51 deletions
+54
-51
LayerOver.prefab
play/assets/tmpGame/prefabs/LayerOver.prefab
+31
-44
ItemAnswer.js
play/assets/tmpGame/script/ItemAnswer.js
+2
-2
Scene.js
play/assets/tmpGame/script/Scene.js
+21
-5
No files found.
play/assets/tmpGame/prefabs/LayerOver.prefab
View file @
c8ebe5ab
...
@@ -21,14 +21,17 @@
...
@@ -21,14 +21,17 @@
"__id__": 2
"__id__": 2
},
},
{
{
"__id__":
7
"__id__":
6
},
},
{
{
"__id__":
10
"__id__":
9
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
"__id__": 23
},
{
{
"__id__": 24
"__id__": 24
},
},
...
@@ -37,13 +40,10 @@
...
@@ -37,13 +40,10 @@
},
},
{
{
"__id__": 26
"__id__": 26
},
{
"__id__": 27
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 2
8
"__id__": 2
7
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -107,13 +107,10 @@
...
@@ -107,13 +107,10 @@
},
},
{
{
"__id__": 4
"__id__": 4
},
{
"__id__": 5
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
6
"__id__":
5
},
},
"_opacity": 0,
"_opacity": 0,
"_color": {
"_color": {
...
@@ -221,16 +218,6 @@
...
@@ -221,16 +218,6 @@
"_originalHeight": 720,
"_originalHeight": 720,
"_id": ""
"_id": ""
},
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_id": ""
},
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
...
@@ -253,11 +240,11 @@
...
@@ -253,11 +240,11 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
8
"__id__":
7
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
9
"__id__":
8
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -311,7 +298,7 @@
...
@@ -311,7 +298,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
7
"__id__":
6
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -358,22 +345,22 @@
...
@@ -358,22 +345,22 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 1
1
"__id__": 1
0
},
},
{
{
"__id__": 1
4
"__id__": 1
3
},
},
{
{
"__id__": 1
7
"__id__": 1
6
},
},
{
{
"__id__":
20
"__id__":
19
}
}
],
],
"_active": true,
"_active": true,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__": 2
3
"__id__": 2
2
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -427,17 +414,17 @@
...
@@ -427,17 +414,17 @@
"_name": "bg_sahua",
"_name": "bg_sahua",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
10
"__id__":
9
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
2
"__id__": 1
1
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
3
"__id__": 1
2
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -491,7 +478,7 @@
...
@@ -491,7 +478,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
1
"__id__": 1
0
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -534,17 +521,17 @@
...
@@ -534,17 +521,17 @@
"_name": "bg_sahua",
"_name": "bg_sahua",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
10
"__id__":
9
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
5
"__id__": 1
4
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
6
"__id__": 1
5
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -598,7 +585,7 @@
...
@@ -598,7 +585,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
4
"__id__": 1
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -641,17 +628,17 @@
...
@@ -641,17 +628,17 @@
"_name": "bg_sahua",
"_name": "bg_sahua",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
10
"__id__":
9
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
8
"__id__": 1
7
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
9
"__id__": 1
8
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -705,7 +692,7 @@
...
@@ -705,7 +692,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
7
"__id__": 1
6
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -748,17 +735,17 @@
...
@@ -748,17 +735,17 @@
"_name": "bg_sahua",
"_name": "bg_sahua",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
10
"__id__":
9
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
1
"__id__": 2
0
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 2
2
"__id__": 2
1
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -812,7 +799,7 @@
...
@@ -812,7 +799,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
20
"__id__":
19
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
...
play/assets/tmpGame/script/ItemAnswer.js
View file @
c8ebe5ab
...
@@ -250,7 +250,7 @@ cc.Class({
...
@@ -250,7 +250,7 @@ cc.Class({
)
)
},
},
playLabelGreen
()
{
playLabelGreen
(
cb
)
{
this
.
dragonBone
.
playAnimation
(
this
.
animationName
,
1
);
this
.
dragonBone
.
playAnimation
(
this
.
animationName
,
1
);
this
.
playAudioOption
((
duration
)
=>
{
this
.
playAudioOption
((
duration
)
=>
{
this
.
scheduleStep
=
2
;
this
.
scheduleStep
=
2
;
...
@@ -268,11 +268,11 @@ cc.Class({
...
@@ -268,11 +268,11 @@ cc.Class({
this
.
labelGreen
.
node
.
anchorX
=
0
;
this
.
labelGreen
.
node
.
anchorX
=
0
;
this
.
labelGreen
.
node
.
x
=
0
;
this
.
labelGreen
.
node
.
x
=
0
;
this
.
schedule
(
this
.
playLabelGreenCb
,
this
.
scheduleDuration
)
this
.
schedule
(
this
.
playLabelGreenCb
,
this
.
scheduleDuration
)
},
()
=>
{
},
()
=>
{
this
.
unschedule
(
this
.
changeAudioSpfCb
)
this
.
unschedule
(
this
.
changeAudioSpfCb
)
this
.
sprAudio
.
spriteFrame
=
this
.
spfAudioOn
;
this
.
sprAudio
.
spriteFrame
=
this
.
spfAudioOn
;
GameData
.
isAudio
=
false
;
GameData
.
isAudio
=
false
;
cb
&&
cb
();
});
});
},
},
playLabelGreenCb
()
{
playLabelGreenCb
()
{
...
...
play/assets/tmpGame/script/Scene.js
View file @
c8ebe5ab
...
@@ -352,11 +352,11 @@ cc.Class({
...
@@ -352,11 +352,11 @@ cc.Class({
cc
.
scaleTo
(
0.5
,
1.2
)
cc
.
scaleTo
(
0.5
,
1.2
)
),
),
cc
.
callFunc
(()
=>
{
cc
.
callFunc
(()
=>
{
i
f
(
this
.
checkOver
())
{
i
temAnswer
.
playLabelGreen
(()
=>
{
this
.
showLayerOver
();
if
(
this
.
checkOver
())
{
return
;
this
.
showLayerOver
()
;
}
}
itemAnswer
.
playLabelGreen
(
);
}
);
GameData
.
_showDragonbonesMove
=
false
;
GameData
.
_showDragonbonesMove
=
false
;
})
})
))
))
...
@@ -368,6 +368,7 @@ cc.Class({
...
@@ -368,6 +368,7 @@ cc.Class({
}
}
},
},
showLayerOver
()
{
showLayerOver
()
{
GameData
.
isOver
=
true
;
let
node
=
cc
.
instantiate
(
this
.
layerOver
);
let
node
=
cc
.
instantiate
(
this
.
layerOver
);
node
.
parent
=
this
.
node
;
node
.
parent
=
this
.
node
;
node
.
zIndex
=
6
;
node
.
zIndex
=
6
;
...
@@ -421,13 +422,22 @@ cc.Class({
...
@@ -421,13 +422,22 @@ cc.Class({
GameData
.
startStepDone
=
false
;
GameData
.
startStepDone
=
false
;
},
},
onTurnLast
()
{
onTurnLast
()
{
if
(
GameData
.
isOver
){
return
;
}
GameData
.
questionIndex
--
;
GameData
.
questionIndex
--
;
this
.
resetDate
();
this
.
resetDate
();
},
},
onReplay
()
{
onReplay
()
{
if
(
GameData
.
isOver
){
return
;
}
this
.
resetDate
();
this
.
resetDate
();
},
},
onTurnNext
()
{
onTurnNext
()
{
if
(
GameData
.
isOver
){
return
;
}
GameData
.
questionIndex
++
;
GameData
.
questionIndex
++
;
this
.
resetDate
();
this
.
resetDate
();
},
},
...
@@ -440,6 +450,9 @@ cc.Class({
...
@@ -440,6 +450,9 @@ cc.Class({
if
(
GameData
.
audioCount
!=
0
)
{
if
(
GameData
.
audioCount
!=
0
)
{
return
;
return
;
}
}
if
(
GameData
.
isOver
){
return
;
}
this
.
playAudioPage
(
true
);
this
.
playAudioPage
(
true
);
}
else
if
(
button
.
node
.
name
==
'
btnLast
'
)
{
}
else
if
(
button
.
node
.
name
==
'
btnLast
'
)
{
this
.
onTurnLast
();
this
.
onTurnLast
();
...
@@ -448,6 +461,9 @@ cc.Class({
...
@@ -448,6 +461,9 @@ cc.Class({
}
else
if
(
button
.
node
.
name
==
'
btnNext
'
)
{
}
else
if
(
button
.
node
.
name
==
'
btnNext
'
)
{
this
.
onTurnNext
();
this
.
onTurnNext
();
}
else
if
(
button
.
node
.
name
==
'
btnAudio
'
)
{
}
else
if
(
button
.
node
.
name
==
'
btnAudio
'
)
{
if
(
GameData
.
isOver
){
return
;
}
this
.
onBtnClickAudio
();
this
.
onBtnClickAudio
();
}
}
},
},
...
...
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