Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LWD_2
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
LWD_2
Commits
3599aaa8
Commit
3599aaa8
authored
Jun 17, 2021
by
Lwd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaaa
parent
1b98c460
Changes
14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
833 additions
and
730 deletions
+833
-730
Course.ts
form/src/app/form/Course.ts
+1
-0
form.component.html
form/src/app/form/form.component.html
+6
-0
GOTHICB_1.TTF
play/assets/tmpGame/fonts/GOTHICB_1.TTF
+0
-0
GOTHICB_1.TTF.meta
play/assets/tmpGame/fonts/GOTHICB_1.TTF.meta
+0
-0
MMTextBook-Bold-1.ttf
play/assets/tmpGame/fonts/MMTextBook-Bold-1.ttf
+0
-0
MMTextBook-Bold-1.ttf.meta
play/assets/tmpGame/fonts/MMTextBook-Bold-1.ttf.meta
+0
-0
ahronbd-1.ttf
play/assets/tmpGame/fonts/ahronbd-1.ttf
+0
-0
ahronbd-1.ttf.meta
play/assets/tmpGame/fonts/ahronbd-1.ttf.meta
+0
-0
华文圆体 REGULAR.TTF
play/assets/tmpGame/fonts/华文圆体 REGULAR.TTF
+0
-0
华文圆体 REGULAR.TTF.meta
play/assets/tmpGame/fonts/华文圆体 REGULAR.TTF.meta
+2
-1
Game.fire
play/assets/tmpGame/scene/Game.fire
+329
-244
game.js
play/assets/tmpGame/script/game/game.js
+269
-260
item.js
play/assets/tmpGame/script/game/item.js
+224
-224
data_mgr.js
play/assets/tmpGame/script/manager/data_mgr.js
+2
-1
No files found.
form/src/app/form/Course.ts
View file @
3599aaa8
...
@@ -6,6 +6,7 @@ export class Course {
...
@@ -6,6 +6,7 @@ export class Course {
title
:
string
;
title
:
string
;
audio_url
:
string
;
}
}
export
class
Sheepfold
{
export
class
Sheepfold
{
...
...
form/src/app/form/form.component.html
View file @
3599aaa8
...
@@ -8,6 +8,12 @@
...
@@ -8,6 +8,12 @@
</div>
</div>
</div>
</div>
<nz-form-control
[
nzSpan
]="
18
"
>
<span>
标题声音:
</span>
<app-audio-recorder
[
audioUrl
]="
item
.
audio_url
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
item
,
'
audio_url
')"
>
</app-audio-recorder>
</nz-form-control>
<nz-divider
nzText=
"类别"
nzOrientation=
"left"
></nz-divider>
<nz-divider
nzText=
"类别"
nzOrientation=
"left"
></nz-divider>
<!-- <div nz-row>
<!-- <div nz-row>
<nz-form-item>
<nz-form-item>
...
...
play/assets/
resources/font
/GOTHICB_1.TTF
→
play/assets/
tmpGame/fonts
/GOTHICB_1.TTF
View file @
3599aaa8
File moved
play/assets/
resources/font
/GOTHICB_1.TTF.meta
→
play/assets/
tmpGame/fonts
/GOTHICB_1.TTF.meta
View file @
3599aaa8
File moved
play/assets/
resources/font
/MMTextBook-Bold-1.ttf
→
play/assets/
tmpGame/fonts
/MMTextBook-Bold-1.ttf
View file @
3599aaa8
File moved
play/assets/
resources/font
/MMTextBook-Bold-1.ttf.meta
→
play/assets/
tmpGame/fonts
/MMTextBook-Bold-1.ttf.meta
View file @
3599aaa8
File moved
play/assets/
resources/font
/ahronbd-1.ttf
→
play/assets/
tmpGame/fonts
/ahronbd-1.ttf
View file @
3599aaa8
File moved
play/assets/
resources/font
/ahronbd-1.ttf.meta
→
play/assets/
tmpGame/fonts
/ahronbd-1.ttf.meta
View file @
3599aaa8
File moved
play/assets/
resources/font
/华文圆体 REGULAR.TTF
→
play/assets/
tmpGame/fonts
/华文圆体 REGULAR.TTF
View file @
3599aaa8
File moved
play/assets/
resources/font
/华文圆体 REGULAR.TTF.meta
→
play/assets/
tmpGame/fonts
/华文圆体 REGULAR.TTF.meta
View file @
3599aaa8
{
{
"ver": "1.1.0",
"ver": "1.1.0",
"uuid": "
41ef287f-ba46-4313-a114-676b6eae4bca
",
"uuid": "
5c0041d0-ccbd-4069-bc12-73a47695ed52
",
"subMetas": {}
"subMetas": {}
}
}
\ No newline at end of file
play/assets/tmpGame/scene/Game.fire
View file @
3599aaa8
This diff is collapsed.
Click to expand it.
play/assets/tmpGame/script/game/game.js
View file @
3599aaa8
...
@@ -176,6 +176,15 @@ var game = cc.Class({
...
@@ -176,6 +176,15 @@ var game = cc.Class({
// this.setButtonState();
// this.setButtonState();
},
},
//播放标题音效
playAudioTitle
:
function
()
{
//获得播放路径
var
path
=
g
.
data_mgr
.
data
.
audio_url
;
g
.
res_mgr
.
playAudioByUrl
(
path
,
(
url
)
=>
{
g
.
snd_mgr
.
playEffect
(
url
,
null
);
});
},
//重置UI界面
//重置UI界面
resetUI
:
function
()
{
resetUI
:
function
()
{
//移除所有子节点
//移除所有子节点
...
...
play/assets/tmpGame/script/game/item.js
View file @
3599aaa8
...
@@ -99,7 +99,7 @@ cc.Class({
...
@@ -99,7 +99,7 @@ cc.Class({
var
isIntersect_0
=
contentArrPos_0
.
containsRect
(
posNode_1
);
var
isIntersect_0
=
contentArrPos_0
.
containsRect
(
posNode_1
);
// console.log("坐标" + svLeftBottomPoint.x + "," + svLeftBottomPoint.y + "是否包含" + isIntersect_1);
// console.log("坐标" + svLeftBottomPoint.x + "," + svLeftBottomPoint.y + "是否包含" + isIntersect_1);
if
(
isIntersect_1
)
{
if
(
isIntersect_1
)
{
if
(
this
.
node
.
type
==
1
)
{
if
(
this
.
node
.
type
==
2
)
{
this
.
Item_complete
.
active
=
true
;
this
.
Item_complete
.
active
=
true
;
this
.
node
.
isComplent
=
true
;
this
.
node
.
isComplent
=
true
;
g
.
data_mgr
.
nowNum
-=
1
;
g
.
data_mgr
.
nowNum
-=
1
;
...
@@ -128,7 +128,7 @@ cc.Class({
...
@@ -128,7 +128,7 @@ cc.Class({
console
.
log
(
"
被1包含
"
+
isIntersect_1
);
console
.
log
(
"
被1包含
"
+
isIntersect_1
);
}
else
}
else
if
(
isIntersect_0
)
{
if
(
isIntersect_0
)
{
if
(
this
.
node
.
type
==
2
)
{
if
(
this
.
node
.
type
==
1
)
{
this
.
Item_complete
.
active
=
true
;
this
.
Item_complete
.
active
=
true
;
this
.
node
.
isComplent
=
true
;
this
.
node
.
isComplent
=
true
;
g
.
data_mgr
.
nowNum
-=
1
;
g
.
data_mgr
.
nowNum
-=
1
;
...
...
play/assets/tmpGame/script/manager/data_mgr.js
View file @
3599aaa8
...
@@ -13,7 +13,8 @@ g.data_mgr = {
...
@@ -13,7 +13,8 @@ g.data_mgr = {
{
"
id
"
:
"
162373800016117r8ti
"
,
"
word
"
:
"
标题1
"
},
{
"
id
"
:
"
162373800016117r8ti
"
,
"
word
"
:
"
标题1
"
},
{
"
id
"
:
"
1623738000162o9u566
"
,
"
word
"
:
"
标题2
"
}],
{
"
id
"
:
"
1623738000162o9u566
"
,
"
word
"
:
"
标题2
"
}],
"
sheepArr
"
:
[{
"
sheepfoldId
"
:
"
162373800016117r8ti
"
,
"
word
"
:
"
aaa
"
,
"
picUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/77d34b5a7f2895e9319d4485a84a1b2b.png
"
},
{
"
word
"
:
"
aa
"
,
"
sheepfoldId
"
:
"
1623738000162o9u566
"
,
"
picUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/be3debcc0598cfdde8a9e1ad2324743e.png
"
},
{
"
sheepfoldId
"
:
"
1623738000162o9u566
"
,
"
picUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/be3debcc0598cfdde8a9e1ad2324743e.png
"
,
"
word
"
:
"
fgsdfg
"
},
{
"
sheepfoldId
"
:
"
162373800016117r8ti
"
,
"
picUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/77d34b5a7f2895e9319d4485a84a1b2b.png
"
,
"
word
"
:
"
gdfa
"
}],
"
sheepArr
"
:
[{
"
sheepfoldId
"
:
"
162373800016117r8ti
"
,
"
word
"
:
"
aaa
"
,
"
picUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/77d34b5a7f2895e9319d4485a84a1b2b.png
"
},
{
"
word
"
:
"
aa
"
,
"
sheepfoldId
"
:
"
1623738000162o9u566
"
,
"
picUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/be3debcc0598cfdde8a9e1ad2324743e.png
"
},
{
"
sheepfoldId
"
:
"
1623738000162o9u566
"
,
"
picUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/be3debcc0598cfdde8a9e1ad2324743e.png
"
,
"
word
"
:
"
fgsdfg
"
},
{
"
sheepfoldId
"
:
"
162373800016117r8ti
"
,
"
picUrl
"
:
"
http://staging-teach.cdn.ireadabc.com/77d34b5a7f2895e9319d4485a84a1b2b.png
"
,
"
word
"
:
"
gdfa
"
}],
"
title
"
:
"
asdfa
"
"
title
"
:
"
asdfa
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/032ce2b956871f7bc7b200d0ebbb7afc.mp3
"
}
}
const
data
=
dataJson
;
const
data
=
dataJson
;
// const data = JSON.parse(dataJson);
// const data = JSON.parse(dataJson);
...
...
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