Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP49
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
OP49
Commits
65b02298
Commit
65b02298
authored
Jul 11, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
bd179535
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
26 deletions
+47
-26
OP49.fire
assets/OP49/scene/OP49.fire
+15
-17
OP49.js
assets/OP49/scene/OP49.js
+32
-9
No files found.
assets/OP49/scene/OP49.fire
View file @
65b02298
...
@@ -441,6 +441,7 @@
...
@@ -441,6 +441,7 @@
"_volume": 1,
"_volume": 1,
"_mute": false,
"_mute": false,
"_loop": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"playOnLoad": false,
"preload": false,
"preload": false,
"_id": "0fpufyVVpDsJXhdF0nqyQI"
"_id": "0fpufyVVpDsJXhdF0nqyQI"
...
@@ -521,6 +522,7 @@
...
@@ -521,6 +522,7 @@
"_volume": 1,
"_volume": 1,
"_mute": false,
"_mute": false,
"_loop": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"playOnLoad": false,
"preload": false,
"preload": false,
"_id": "51ctdulrJL762YJ+YJsG5h"
"_id": "51ctdulrJL762YJ+YJsG5h"
...
@@ -601,6 +603,7 @@
...
@@ -601,6 +603,7 @@
"_volume": 1,
"_volume": 1,
"_mute": false,
"_mute": false,
"_loop": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"playOnLoad": false,
"preload": false,
"preload": false,
"_id": "bcj8PE5t5C/bvzJrfJKep2"
"_id": "bcj8PE5t5C/bvzJrfJKep2"
...
@@ -681,6 +684,7 @@
...
@@ -681,6 +684,7 @@
"_volume": 1,
"_volume": 1,
"_mute": false,
"_mute": false,
"_loop": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"playOnLoad": false,
"preload": false,
"preload": false,
"_id": "adSvNME1VAJpo+Mcy1CKc4"
"_id": "adSvNME1VAJpo+Mcy1CKc4"
...
@@ -761,6 +765,7 @@
...
@@ -761,6 +765,7 @@
"_volume": 1,
"_volume": 1,
"_mute": false,
"_mute": false,
"_loop": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"playOnLoad": false,
"preload": false,
"preload": false,
"_id": "1dSsu5zCFICLt1HS8K3aX4"
"_id": "1dSsu5zCFICLt1HS8K3aX4"
...
@@ -841,6 +846,7 @@
...
@@ -841,6 +846,7 @@
"_volume": 1,
"_volume": 1,
"_mute": false,
"_mute": false,
"_loop": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"playOnLoad": false,
"preload": false,
"preload": false,
"_id": "3fGa2zmmBPponkVzm+ZTlT"
"_id": "3fGa2zmmBPponkVzm+ZTlT"
...
@@ -921,6 +927,7 @@
...
@@ -921,6 +927,7 @@
"_volume": 1,
"_volume": 1,
"_mute": false,
"_mute": false,
"_loop": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"playOnLoad": false,
"preload": false,
"preload": false,
"_id": "f3C2KOM5tKHaaYHaJOdXk8"
"_id": "f3C2KOM5tKHaaYHaJOdXk8"
...
@@ -1001,6 +1008,7 @@
...
@@ -1001,6 +1008,7 @@
"_volume": 1,
"_volume": 1,
"_mute": false,
"_mute": false,
"_loop": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"playOnLoad": false,
"preload": false,
"preload": false,
"_id": "b8DA79vh9Mbb+bqRvZybPk"
"_id": "b8DA79vh9Mbb+bqRvZybPk"
...
@@ -1081,6 +1089,7 @@
...
@@ -1081,6 +1089,7 @@
"_volume": 1,
"_volume": 1,
"_mute": false,
"_mute": false,
"_loop": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"playOnLoad": false,
"preload": false,
"preload": false,
"_id": "53anR5Nf9LHa35556rYf8+"
"_id": "53anR5Nf9LHa35556rYf8+"
...
@@ -1114,7 +1123,7 @@
...
@@ -1114,7 +1123,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1088,
"width": 1088,
"height": 8
00
"height": 8
25
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -1126,7 +1135,7 @@
...
@@ -1126,7 +1135,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
0
,
25
,
0,
0,
0,
0,
0,
0,
...
@@ -1195,7 +1204,7 @@
...
@@ -1195,7 +1204,7 @@
"_alignFlags": 45,
"_alignFlags": 45,
"_left": 0,
"_left": 0,
"_right": 0,
"_right": 0,
"_top": 0,
"_top":
-5
0,
"_bottom": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
...
@@ -2959,7 +2968,6 @@
...
@@ -2959,7 +2968,6 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "a",
"_string": "a",
"_N$string": "a",
"_N$string": "a",
"_fontSize": 100,
"_fontSize": 100,
...
@@ -3020,7 +3028,6 @@
...
@@ -3020,7 +3028,6 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "apple",
"_string": "apple",
"_N$string": "apple",
"_N$string": "apple",
"_fontSize": 100,
"_fontSize": 100,
...
@@ -3582,7 +3589,7 @@
...
@@ -3582,7 +3589,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
0
,
6
,
0,
0,
0,
0,
0,
0,
...
@@ -3621,11 +3628,10 @@
...
@@ -3621,11 +3628,10 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "cba",
"_string": "cba",
"_N$string": "cba",
"_N$string": "cba",
"_fontSize":
10
0,
"_fontSize":
8
0,
"_lineHeight":
10
0,
"_lineHeight":
8
0,
"_enableWrapText": false,
"_enableWrapText": false,
"_N$file": {
"_N$file": {
"__uuid__": "f0adf7cd-b2db-4a5a-87fe-4d818a6a6b89"
"__uuid__": "f0adf7cd-b2db-4a5a-87fe-4d818a6a6b89"
...
@@ -6722,7 +6728,6 @@
...
@@ -6722,7 +6728,6 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "",
"_string": "",
"_N$string": "",
"_N$string": "",
"_fontSize": 27,
"_fontSize": 27,
...
@@ -8496,7 +8501,6 @@
...
@@ -8496,7 +8501,6 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "animal1",
"_string": "animal1",
"_N$string": "animal1",
"_N$string": "animal1",
"_fontSize": 36,
"_fontSize": 36,
...
@@ -8862,7 +8866,6 @@
...
@@ -8862,7 +8866,6 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "plant",
"_string": "plant",
"_N$string": "plant",
"_N$string": "plant",
"_fontSize": 36,
"_fontSize": 36,
...
@@ -9225,7 +9228,6 @@
...
@@ -9225,7 +9228,6 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "food",
"_string": "food",
"_N$string": "food",
"_N$string": "food",
"_fontSize": 36,
"_fontSize": 36,
...
@@ -9805,7 +9807,6 @@
...
@@ -9805,7 +9807,6 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "Compare",
"_string": "Compare",
"_N$string": "Compare",
"_N$string": "Compare",
"_fontSize": 28,
"_fontSize": 28,
...
@@ -10394,7 +10395,6 @@
...
@@ -10394,7 +10395,6 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "test",
"_string": "test",
"_N$string": "test",
"_N$string": "test",
"_fontSize": 35,
"_fontSize": 35,
...
@@ -10558,7 +10558,6 @@
...
@@ -10558,7 +10558,6 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "rerg",
"_string": "rerg",
"_N$string": "rerg",
"_N$string": "rerg",
"_fontSize": 35,
"_fontSize": 35,
...
@@ -10757,7 +10756,6 @@
...
@@ -10757,7 +10756,6 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "rerg",
"_string": "rerg",
"_N$string": "rerg",
"_N$string": "rerg",
"_fontSize": 30,
"_fontSize": 30,
...
...
assets/OP49/scene/OP49.js
View file @
65b02298
...
@@ -305,7 +305,9 @@ cc.Class({
...
@@ -305,7 +305,9 @@ cc.Class({
this
.
initLayout
()
//完成后直接进入下一步
this
.
initLayout
()
//完成后直接进入下一步
})
})
}
else
{
}
else
{
this
.
setMaoAni
(
"
begin
"
);
pg
.
audio
.
playAudioByUrl
(
this
.
_cat
.
start
).
then
(()
=>
{
pg
.
audio
.
playAudioByUrl
(
this
.
_cat
.
start
).
then
(()
=>
{
this
.
setMaoAni
(
"
normal
"
);
this
.
_catStartPlayed
=
true
;
this
.
_catStartPlayed
=
true
;
pg
.
view
.
loadDB
(
carton
,
{
ske
:
this
.
_stageData
.
cartoonSke
,
tex
:
this
.
_stageData
.
cartoonTex
,
png
:
this
.
_stageData
.
cartoonPng
}).
then
((
animationName
)
=>
{
pg
.
view
.
loadDB
(
carton
,
{
ske
:
this
.
_stageData
.
cartoonSke
,
tex
:
this
.
_stageData
.
cartoonTex
,
png
:
this
.
_stageData
.
cartoonPng
}).
then
((
animationName
)
=>
{
this
.
animationName
=
animationName
;
this
.
animationName
=
animationName
;
...
@@ -493,7 +495,11 @@ cc.Class({
...
@@ -493,7 +495,11 @@ cc.Class({
pg
.
view
.
visible
(
bg_tryagain
,
false
);
pg
.
view
.
visible
(
bg_tryagain
,
false
);
pg
.
audio
.
playAudioByUrl
(
this
.
_cat
.
finish
)
// pg.audio.playAudioByUrl(this._cat.finish)
this
.
setMaoAni
(
"
finish
"
);
pg
.
audio
.
playAudioByUrl
(
this
.
_cat
.
finish
).
then
(()
=>
{
this
.
setMaoAni
(
"
normal
"
)
})
// this.playSFX("audio_finish");
// this.playSFX("audio_finish");
// pg.view.visible(btn_picture, true);
// pg.view.visible(btn_picture, true);
pg
.
view
.
visible
(
btn_record
,
false
);
pg
.
view
.
visible
(
btn_record
,
false
);
...
@@ -566,10 +572,12 @@ cc.Class({
...
@@ -566,10 +572,12 @@ cc.Class({
audioFinished
=
true
;
audioFinished
=
true
;
let
time
=
cc
.
audioEngine
.
getDuration
(
id
);
let
time
=
cc
.
audioEngine
.
getDuration
(
id
);
this
.
showSliderAction
(
time
).
then
(()
=>
{
this
.
showSliderAction
(
time
).
then
(()
=>
{
pg
.
audio
.
playAudioByUrlCall
(
this
.
_stageData
.
sound
,
()
=>
{
if
(
aniFinished
&&
audioFinished
)
{
if
(
aniFinished
&&
audioFinished
)
{
this
.
_playing
=
false
;
this
.
_playing
=
false
;
resolve
(
''
);
resolve
(
''
);
}
}
})
});
});
})
})
}
else
{
}
else
{
...
@@ -590,10 +598,12 @@ cc.Class({
...
@@ -590,10 +598,12 @@ cc.Class({
audioFinished
=
true
;
audioFinished
=
true
;
let
time
=
cc
.
audioEngine
.
getDuration
(
id
);
let
time
=
cc
.
audioEngine
.
getDuration
(
id
);
this
.
showSliderAction
(
time
).
then
(()
=>
{
this
.
showSliderAction
(
time
).
then
(()
=>
{
pg
.
audio
.
playAudioByUrlCall
(
this
.
_stageData
.
sound
,
()
=>
{
if
(
aniFinished
&&
audioFinished
)
{
if
(
aniFinished
&&
audioFinished
)
{
this
.
_playing
=
false
;
this
.
_playing
=
false
;
resolve
(
''
);
resolve
(
''
);
}
}
})
});
});
})
})
},
1000
*
2
));
},
1000
*
2
));
...
@@ -706,6 +716,8 @@ cc.Class({
...
@@ -706,6 +716,8 @@ cc.Class({
let
card_group
=
cc
.
find
(
"
card_group
"
,
this
.
node
);
let
card_group
=
cc
.
find
(
"
card_group
"
,
this
.
node
);
let
slider
=
cc
.
find
(
"
slider
"
,
card_group
);
let
slider
=
cc
.
find
(
"
slider
"
,
card_group
);
slider
.
action
=
true
;
slider
.
action
=
true
;
let
handle
=
cc
.
find
(
"
Handle
"
,
slider
);
handle
.
active
=
true
;
let
sl
=
slider
.
getComponent
(
cc
.
Slider
)
let
sl
=
slider
.
getComponent
(
cc
.
Slider
)
sl
.
progress
=
0
;
sl
.
progress
=
0
;
let
t
=
time
/
10
;
let
t
=
time
/
10
;
...
@@ -722,6 +734,10 @@ cc.Class({
...
@@ -722,6 +734,10 @@ cc.Class({
.
to
(
t
,
{
progress
:
1
}).
call
(()
=>
{
.
to
(
t
,
{
progress
:
1
}).
call
(()
=>
{
this
.
setCardColor
(
sl
.
progress
);
this
.
setCardColor
(
sl
.
progress
);
this
.
hideBox
();
this
.
hideBox
();
let
handle
=
cc
.
find
(
"
Handle
"
,
slider
);
handle
.
active
=
false
;
})
.
delay
(
0.5
).
call
(()
=>
{
return
resolve
(
""
)
return
resolve
(
""
)
})
})
.
start
();
.
start
();
...
@@ -847,7 +863,9 @@ cc.Class({
...
@@ -847,7 +863,9 @@ cc.Class({
onTouchCat
()
{
onTouchCat
()
{
if
(
this
.
_playing
)
return
;
if
(
this
.
_playing
)
return
;
this
.
_playing
=
true
;
this
.
_playing
=
true
;
this
.
setMaoAni
(
"
begin
"
);
pg
.
audio
.
playAudioByUrl
(
this
.
_cat
.
wait
).
then
(()
=>
{
pg
.
audio
.
playAudioByUrl
(
this
.
_cat
.
wait
).
then
(()
=>
{
this
.
setMaoAni
(
"
normal
"
);
this
.
_playing
=
false
;
this
.
_playing
=
false
;
})
})
},
},
...
@@ -876,6 +894,11 @@ cc.Class({
...
@@ -876,6 +894,11 @@ cc.Class({
},
},
setMaoAni
(
aniName
)
{
let
mao_ske
=
cc
.
find
(
"
mao_ske
"
,
this
.
node
);
let
ske
=
mao_ske
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
aniName
);
},
...
...
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