Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
extreme_skiing
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
extreme_skiing
Commits
9dfa4cab
Commit
9dfa4cab
authored
Aug 19, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d9111ca0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
121 additions
and
82 deletions
+121
-82
layout_game.ts
assets/extreme_skiing/scene/game/layout_game.ts
+13
-13
defaultData.ts
assets/extreme_skiing/script/defaultData.ts
+108
-69
No files found.
assets/extreme_skiing/scene/game/layout_game.ts
View file @
9dfa4cab
...
...
@@ -116,20 +116,20 @@ export default class layout_game extends cc.Component {
item
.
opacity
=
0
;
this
.
wrongNum
=
0
;
pg
.
audio
.
playAudioByUrl
(
data
.
audioUrl
,
()
=>
{
let
pag
=
Game
.
getIns
().
getCurrentPage
()
if
(
this
.
rightNum
>=
pag
.
rNum
)
{
Game
.
getIns
().
player
.
addRight
();
this
.
layout_same
.
removeAllChildren
();
cc
.
find
(
"
bg_ornament
"
,
this
.
node
).
active
=
false
;
cc
.
find
(
"
bg_ornament2
"
,
this
.
node
).
active
=
false
;
this
.
clickRight
().
then
(()
=>
{
pg
.
event
.
emit
(
"
game_time_over
"
);
});
}
else
{
pg
.
event
.
emit
(
"
play_laba_audio
"
);
}
this
.
touch
=
false
;
})
let
pag
=
Game
.
getIns
().
getCurrentPage
()
if
(
this
.
rightNum
>=
pag
.
rNum
)
{
Game
.
getIns
().
player
.
addRight
();
this
.
layout_same
.
removeAllChildren
();
cc
.
find
(
"
bg_ornament
"
,
this
.
node
).
active
=
false
;
cc
.
find
(
"
bg_ornament2
"
,
this
.
node
).
active
=
false
;
this
.
clickRight
().
then
(()
=>
{
pg
.
event
.
emit
(
"
game_time_over
"
);
});
}
else
{
pg
.
event
.
emit
(
"
play_laba_audio
"
);
}
this
.
touch
=
false
;
}
else
{
this
.
wrongNum
++
;
pg
.
audio
.
playAudioByUrl
(
data
.
audioUrl
);
...
...
assets/extreme_skiing/script/defaultData.ts
View file @
9dfa4cab
export
const
defaultData
=
{
"
title
"
:
"
急速滑雪
"
,
"
questionText
"
:
"
雪地里有许多不同的指示牌,运动员要选择哪一个呢?亲爱的小玩家,请你认真听游戏指令,帮助运动员选择正确的指示牌吧!游戏结束后,根据收集到的指示牌数量,你将获得相应的能量石奖励哟!开始挑战吧!
"
,
"
questionTextAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/c3b69ad3d51385eac7d4195773ef59f7_l.mp3
"
,
"
questionTextAudio
"
:
"
http
s
://staging-teach.cdn.ireadabc.com/c3b69ad3d51385eac7d4195773ef59f7_l.mp3
"
,
"
questions
"
:
[
{
"
options
"
:
[
{
"
type
"
:
"
img
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/0af1f16b7143f5027c8efcea56c4d8fb.png
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/416b6d52f024005d31898ef1da23daa7_l.mp3
"
,
"
text
"
:
""
,
"
time
"
:
""
,
"
right
"
:
true
,
"
audioName
"
:
"
sahua.mp3
"
},
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/5f5d6834729bb822158a4c9a70cc955d_l.mp3
"
,
"
text
"
:
"
good
"
,
"
time
"
:
""
,
"
right
"
:
true
,
"
audioName
"
:
"
huaxue.mp3
"
},
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/0913981cdeb2c6bc785de1054e80a500_l.mp3
"
,
"
text
"
:
"
ghnggfgf
"
,
"
time
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
error.mp3
"
},
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/f7fb9f71ab7d460ac2f78c85efba7610_l.mp3
"
,
"
text
"
:
"
gfdgdf
"
,
"
time
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
btn.mp3
"
}
],
"
type
"
:
""
,
"
questionAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/cdc41b6682e155c385093c52d2a4adff_l.mp3
"
,
"
audioName
"
:
"
完成-全部答题完成或点击了答题完成按钮.mp3
"
},
{
"
options
"
:
[
{
"
type
"
:
"
img
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/2bc20ac5b284dd8cf379bb1e1c75848a.png
"
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/b004c86f1a26a367cfa329b11e365f0f_l.mp3
"
,
"
text
"
:
""
,
"
time
"
:
""
,
"
right
"
:
true
,
"
audioName
"
:
"
选项被选择(该音效指选项属性无对错概念时候用的).mp3
"
},
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/0913981cdeb2c6bc785de1054e80a500_l.mp3
"
,
"
text
"
:
"
a
m
e
"
,
"
audio
"
:
""
,
"
text
"
:
"
a
ppl
e
"
,
"
time
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
error.mp3
"
"
right
"
:
true
},
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/5f5d6834729bb822158a4c9a70cc955d_l.mp3
"
,
"
text
"
:
"
chilce
"
,
"
audio
"
:
""
,
"
text
"
:
"
apple2
"
,
"
time
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
huaxue.mp3
"
"
right
"
:
true
},
{
"
type
"
:
"
txt
"
,
"
image
"
:
""
,
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/416b6d52f024005d31898ef1da23daa7_l.mp3
"
,
"
text
"
:
"
xnory
"
,
"
audio
"
:
""
,
"
text
"
:
"
s'd'd'c's'd'd's
"
,
"
time
"
:
""
,
"
right
"
:
false
,
"
audioName
"
:
"
sahua.mp3
"
"
right
"
:
false
}
],
"
type
"
:
""
,
"
questionAudio
"
:
"
http
://staging-teach.cdn.ireadabc.com/fb08783926362bf64232e2ec6966011d
_l.mp3
"
,
"
audioName
"
:
"
选择正确
.mp3
"
"
questionAudio
"
:
"
http
s://staging-teach.cdn.ireadabc.com/b6a1ee625d8298a757e8d78bf50352ab
_l.mp3
"
,
"
audioName
"
:
"
a apple
.mp3
"
}
],
"
audioName
"
:
"
极速滑雪 游戏说明.MP3
"
}
\ No newline at end of file
"
audioName
"
:
""
}
// {
// "title": "急速滑雪",
// "questionText": "雪地里有许多不同的指示牌,运动员要选择哪一个呢?亲爱的小玩家,请你认真听游戏指令,帮助运动员选择正确的指示牌吧!游戏结束后,根据收集到的指示牌数量,你将获得相应的能量石奖励哟!开始挑战吧!",
// "questionTextAudio": "http://staging-teach.cdn.ireadabc.com/c3b69ad3d51385eac7d4195773ef59f7_l.mp3",
// "questions": [
// {
// "options": [
// {
// "type": "img",
// "image": "http://staging-teach.cdn.ireadabc.com/0af1f16b7143f5027c8efcea56c4d8fb.png",
// "audio": "http://staging-teach.cdn.ireadabc.com/416b6d52f024005d31898ef1da23daa7_l.mp3",
// "text": "",
// "time": "",
// "right": true,
// "audioName": "sahua.mp3"
// },
// {
// "type": "txt",
// "image": "",
// "audio": "http://staging-teach.cdn.ireadabc.com/5f5d6834729bb822158a4c9a70cc955d_l.mp3",
// "text": "good",
// "time": "",
// "right": true,
// "audioName": "huaxue.mp3"
// },
// {
// "type": "txt",
// "image": "",
// "audio": "http://staging-teach.cdn.ireadabc.com/0913981cdeb2c6bc785de1054e80a500_l.mp3",
// "text": "ghnggfgf",
// "time": "",
// "right": false,
// "audioName": "error.mp3"
// },
// {
// "type": "txt",
// "image": "",
// "audio": "http://staging-teach.cdn.ireadabc.com/f7fb9f71ab7d460ac2f78c85efba7610_l.mp3",
// "text": "gfdgdf ",
// "time": "",
// "right": false,
// "audioName": "btn.mp3"
// }
// ],
// "type": "",
// "questionAudio": "http://staging-teach.cdn.ireadabc.com/cdc41b6682e155c385093c52d2a4adff_l.mp3",
// "audioName": "完成-全部答题完成或点击了答题完成按钮.mp3"
// },
// {
// "options": [
// {
// "type": "img",
// "image": "http://staging-teach.cdn.ireadabc.com/2bc20ac5b284dd8cf379bb1e1c75848a.png",
// "audio": "http://staging-teach.cdn.ireadabc.com/b004c86f1a26a367cfa329b11e365f0f_l.mp3",
// "text": "",
// "time": "",
// "right": true,
// "audioName": "选项被选择(该音效指选项属性无对错概念时候用的).mp3"
// },
// {
// "type": "txt",
// "image": "",
// "audio": "http://staging-teach.cdn.ireadabc.com/0913981cdeb2c6bc785de1054e80a500_l.mp3",
// "text": "ame",
// "time": "",
// "right": false,
// "audioName": "error.mp3"
// },
// {
// "type": "txt",
// "image": "",
// "audio": "http://staging-teach.cdn.ireadabc.com/5f5d6834729bb822158a4c9a70cc955d_l.mp3",
// "text": "chilce",
// "time": "",
// "right": false,
// "audioName": "huaxue.mp3"
// },
// {
// "type": "txt",
// "image": "",
// "audio": "http://staging-teach.cdn.ireadabc.com/416b6d52f024005d31898ef1da23daa7_l.mp3",
// "text": "xnory",
// "time": "",
// "right": false,
// "audioName": "sahua.mp3"
// }
// ],
// "type": "",
// "questionAudio": "http://staging-teach.cdn.ireadabc.com/fb08783926362bf64232e2ec6966011d_l.mp3",
// "audioName": "选择正确.mp3"
// }
// ],
// "audioName": "极速滑雪 游戏说明.MP3"
// }
\ No newline at end of file
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