Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg09_jq
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
dg09_jq
Commits
61af40e4
Commit
61af40e4
authored
Oct 10, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10.9bug调整
parent
d92a726b
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1004 additions
and
902 deletions
+1004
-902
takeout.mp3
assets/dg09_jq/audios/takeout.mp3
+0
-0
takeout.mp3.meta
assets/dg09_jq/audios/takeout.mp3.meta
+7
-0
dg09_jq.fire
assets/dg09_jq/scene/dg09_jq.fire
+893
-825
dg09_jq.ts
assets/dg09_jq/scene/dg09_jq.ts
+32
-5
dg09_jq.ts.meta
assets/dg09_jq/scene/dg09_jq.ts.meta
+1
-1
defaultData.ts
assets/dg09_jq/script/defaultData.ts
+71
-71
bg_congratulation.png
assets/dg09_jq/textures/public/bg_congratulation.png
+0
-0
No files found.
assets/dg09_jq/audios/takeout.mp3
0 → 100644
View file @
61af40e4
File added
assets/dg09_jq/audios/takeout.mp3.meta
0 → 100644
View file @
61af40e4
{
"ver": "2.0.1",
"uuid": "13e38c76-7212-4b17-b3b1-eb27b7ae141c",
"downloadMode": 0,
"duration": 0.182857,
"subMetas": {}
}
\ No newline at end of file
assets/dg09_jq/scene/dg09_jq.fire
View file @
61af40e4
This diff is collapsed.
Click to expand it.
assets/dg09_jq/scene/dg09_jq.ts
View file @
61af40e4
...
...
@@ -126,13 +126,30 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
layout_final
.
active
=
false
;
this
.
label_time
.
getComponent
(
cc
.
Label
).
string
=
"
00:00
"
;
pg
.
event
.
clear
();
this
.
cleanBridge
();
this
.
onLoadEnd
();
}
private
onCloseFinal
()
{
this
.
playLocalAudio
(
"
btn
"
);
this
.
layout_final
.
active
=
false
;
}
private
cleanBridge
()
{
let
bridge_4
=
cc
.
find
(
"
bridge_4
"
,
this
.
layout_game
);
bridge_4
.
children
.
forEach
((
ch
)
=>
{
let
word
=
cc
.
find
(
"
word
"
,
ch
);
word
.
getComponent
(
cc
.
Label
).
string
=
""
;
})
let
bridge_8
=
cc
.
find
(
"
bridge_8
"
,
this
.
layout_game
);
bridge_8
.
children
.
forEach
((
ch
)
=>
{
let
word
=
cc
.
find
(
"
word
"
,
ch
);
word
.
getComponent
(
cc
.
Label
).
string
=
""
;
})
let
bridge_12
=
cc
.
find
(
"
bridge_12
"
,
this
.
layout_game
);
bridge_12
.
children
.
forEach
((
ch
)
=>
{
let
word
=
cc
.
find
(
"
word
"
,
ch
);
word
.
getComponent
(
cc
.
Label
).
string
=
""
;
})
}
private
gameOver
()
{
Game
.
getIns
().
state
=
GAME_STATE
.
OVER
;
...
...
@@ -167,11 +184,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
layout_cloud
.
active
=
true
;
layout_bridge
.
active
=
true
;
data
.
wordArr
.
sort
(
function
()
{
return
(
0.5
-
Math
.
random
());
});
layout_cloud
.
children
.
forEach
((
ch
,
idx
)
=>
{
let
c_d
=
data
.
wordArr
[
idx
];
if
(
!
c_d
)
ch
.
active
=
false
;
this
.
initCloudItem
(
ch
,
c_d
);
});
layout_bridge
.
children
.
forEach
((
item
,
idx
)
=>
{
let
c_d
=
data
.
wordArr
[
idx
];
if
(
!
c_d
)
item
.
active
=
false
;
let
word
=
cc
.
find
(
"
word
"
,
item
);
word
.
getComponent
(
cc
.
Label
).
string
=
""
;
word
.
active
=
false
;
...
...
@@ -233,7 +256,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
onItemTouchStart
(
e
)
{
this
.
playLocalAudio
(
"
clickcard
"
);
this
.
playLocalAudio
(
"
takeout
"
);
// if (this.checkRoundOver()) return;
let
target
:
cc
.
Node
=
e
.
target
;
let
data
=
target
.
data
;
...
...
@@ -275,6 +298,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
word
.
active
=
true
;
word
.
getComponent
(
cc
.
Label
).
string
=
data
.
text
;
this
.
playLocalAudio
(
"
move
"
)
if
(
this
.
checkRoundOver
())
{
if
(
this
.
checkMoveRight
())
{
this
.
playLocalAudio
(
"
right
"
);
...
...
@@ -296,10 +320,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
{
Game
.
getIns
().
failCount
++
;
this
.
playLocalAudio
(
"
error
"
);
this
.
showQuestion
();
this
.
playLocalAudio
(
"
error
"
).
then
(()
=>
{
this
.
showQuestion
();
});
}
}
}
...
...
@@ -361,7 +387,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
showFind
();
}
else
{
this
.
playLocalAudio
(
"
next
"
).
then
(()
=>
{
this
.
startTime
();
// this.startTime();
this
.
gameStart
();
});
}
...
...
assets/dg09_jq/scene/dg09_jq.ts.meta
View file @
61af40e4
{
"ver": "1.0.8",
"uuid": "
86aafc5c-7daa-4c8d-afb0-ba0fd8997b38
",
"uuid": "
9c241603-f677-4422-8c2a-404153fc4366
",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
...
...
assets/dg09_jq/script/defaultData.ts
View file @
61af40e4
...
...
@@ -40,12 +40,12 @@ export const defaultData = {
"
check
"
:
1
},
{
"
text
"
:
"
l
"
,
"
text
"
:
"
l
e
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
e
"
,
"
text
"
:
""
,
"
block
"
:
false
,
"
check
"
:
1
}
...
...
@@ -119,74 +119,74 @@ export const defaultData = {
"
text
"
:
""
,
"
audioName
"
:
"
move.mp3
"
},
{
"
options
"
:
[],
"
contentArr
"
:
[
{
"
text
"
:
"
i
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
n
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
t
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
e
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
r
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
n
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
a
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
t
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
i
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
o
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
n
"
,
"
block
"
:
false
,
"
check
"
:
1
},
{
"
text
"
:
"
al
"
,
"
block
"
:
false
,
"
check
"
:
1
}
],
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/a053d5915bc3b6f0ec8a42912891c538_l.mp3
"
,
"
contentMain
"
:
"
i n t e r n a t i o n al
"
,
"
text
"
:
""
,
"
audioName
"
:
"
next.mp3
"
}
//
{
//
"options": [],
//
"contentArr": [
//
{
//
"text": "i",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "n",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "t",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "e",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "r",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "n",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "a",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "t",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "i",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "o",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "n",
//
"block": false,
//
"check": 1
//
},
//
{
//
"text": "al",
//
"block": false,
//
"check": 1
//
}
//
],
//
"audio": "http://staging-teach.cdn.ireadabc.com/a053d5915bc3b6f0ec8a42912891c538_l.mp3",
//
"contentMain": "i n t e r n a t i o n al",
//
"text": "",
//
"audioName": "next.mp3"
//
}
]
}
\ No newline at end of file
assets/dg09_jq/textures/public/bg_congratulation.png
View replaced file @
d92a726b
View file @
61af40e4
97.6 KB
|
W:
|
H:
103 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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