Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
et_01
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
et_01
Commits
41731e61
Commit
41731e61
authored
Mar 08, 2021
by
智慧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:删除无用代码
parent
1e883503
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
22 deletions
+17
-22
et_01.fire
play/assets/et_01/scene/et_01.fire
+13
-13
et_01.js
play/assets/et_01/script/et_01.js
+4
-9
No files found.
play/assets/et_01/scene/et_01.fire
View file @
41731e61
...
@@ -659,7 +659,7 @@
...
@@ -659,7 +659,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 15
"__id__": 15
...
@@ -761,7 +761,7 @@
...
@@ -761,7 +761,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 17
"__id__": 17
...
@@ -863,7 +863,7 @@
...
@@ -863,7 +863,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 19
"__id__": 19
...
@@ -965,7 +965,7 @@
...
@@ -965,7 +965,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 21
"__id__": 21
...
@@ -1067,7 +1067,7 @@
...
@@ -1067,7 +1067,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 23
"__id__": 23
...
@@ -1169,7 +1169,7 @@
...
@@ -1169,7 +1169,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 25
"__id__": 25
...
@@ -1271,7 +1271,7 @@
...
@@ -1271,7 +1271,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 27
"__id__": 27
...
@@ -1373,7 +1373,7 @@
...
@@ -1373,7 +1373,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 29
"__id__": 29
...
@@ -1475,7 +1475,7 @@
...
@@ -1475,7 +1475,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 31
"__id__": 31
...
@@ -1577,7 +1577,7 @@
...
@@ -1577,7 +1577,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 33
"__id__": 33
...
@@ -1679,7 +1679,7 @@
...
@@ -1679,7 +1679,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 35
"__id__": 35
...
@@ -1781,7 +1781,7 @@
...
@@ -1781,7 +1781,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 37
"__id__": 37
...
@@ -1883,7 +1883,7 @@
...
@@ -1883,7 +1883,7 @@
"__id__": 2
"__id__": 2
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 39
"__id__": 39
...
...
play/assets/et_01/script/et_01.js
View file @
41731e61
...
@@ -84,8 +84,8 @@ cc.Class({
...
@@ -84,8 +84,8 @@ cc.Class({
getDefaultData
()
{
getDefaultData
()
{
//
const dataJson = '{"animationName":"DailyConversations"}'
const
dataJson
=
'
{"animationName":"DailyConversations"}
'
const
dataJson
=
'
{"animationName":"WarmUp"}
'
//
const dataJson = '{"animationName":"WarmUp"}'
// const dataJson = '{"animationName":"LettersInLife"}'
// const dataJson = '{"animationName":"LettersInLife"}'
// const dataJson = '{"animationName":"Phonics"}'
// const dataJson = '{"animationName":"Phonics"}'
// const dataJson = '{"animationName":"LetsBlend"}'
// const dataJson = '{"animationName":"LetsBlend"}'
...
@@ -125,6 +125,7 @@ cc.Class({
...
@@ -125,6 +125,7 @@ cc.Class({
const
preloadArr
=
this
.
_imageResList
.
concat
(
this
.
_audioResList
).
concat
(
this
.
_animaResList
);
const
preloadArr
=
this
.
_imageResList
.
concat
(
this
.
_audioResList
).
concat
(
this
.
_animaResList
);
cc
.
assetManager
.
loadAny
(
preloadArr
,
null
,
null
,
(
err
,
data
)
=>
{
cc
.
assetManager
.
loadAny
(
preloadArr
,
null
,
null
,
(
err
,
data
)
=>
{
console
.
log
(
'
呵呵呵
'
);
this
.
loadEnd
();
this
.
loadEnd
();
if
(
window
&&
window
[
"
air
"
])
{
if
(
window
&&
window
[
"
air
"
])
{
window
[
"
air
"
].
hideAirClassLoading
();
window
[
"
air
"
].
hideAirClassLoading
();
...
@@ -132,9 +133,6 @@ cc.Class({
...
@@ -132,9 +133,6 @@ cc.Class({
cc
.
debug
.
setDisplayStats
(
false
);
cc
.
debug
.
setDisplayStats
(
false
);
});
});
if
(
window
&&
window
[
"
air
"
])
{
window
[
"
air
"
].
hideAirClassLoading
();
}
},
},
...
@@ -148,10 +146,6 @@ cc.Class({
...
@@ -148,10 +146,6 @@ cc.Class({
initData
()
{
initData
()
{
// 所有全局变量 默认都是null
// 所有全局变量 默认都是null
this
.
_cantouch
=
true
;
this
.
_cantouch
=
true
;
if
(
!
this
.
_dragonAnimaList
)
{
this
.
_dragonAnimaList
=
[
"
DailyConversations
"
,
"
WarmUp
"
,
"
LettersInLife
"
,
"
Phonics
"
,
"
LetsBlend
"
,
"
ExerciseTime
"
,
"
TraceWithMe
"
,
"
LookAndSay
"
,
"
LetsReview
"
,
"
SightWords
"
,
"
StoryTime
"
,
"
Topic
"
,
"
ReadClosely
"
];
}
},
},
initAudio
()
{
initAudio
()
{
...
@@ -185,6 +179,7 @@ cc.Class({
...
@@ -185,6 +179,7 @@ cc.Class({
async
showDragon
()
{
async
showDragon
()
{
const
nodeName
=
'
Canvas/
'
+
this
.
data
.
animationName
;
const
nodeName
=
'
Canvas/
'
+
this
.
data
.
animationName
;
const
animationNode
=
cc
.
find
(
nodeName
);
const
animationNode
=
cc
.
find
(
nodeName
);
animationNode
.
active
=
true
;
var
dragonDisplay
=
animationNode
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
var
dragonDisplay
=
animationNode
.
getComponent
(
dragonBones
.
ArmatureDisplay
);
var
animNameArr
=
dragonDisplay
.
getAnimationNames
(
"
armatureName
"
);
var
animNameArr
=
dragonDisplay
.
getAnimationNames
(
"
armatureName
"
);
dragonDisplay
.
playAnimation
(
animNameArr
[
0
],
1
);
dragonDisplay
.
playAnimation
(
animNameArr
[
0
],
1
);
...
...
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