Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
L4R1_game
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
L4R1_game
Commits
de031573
Commit
de031573
authored
Oct 24, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI.++
parent
e6d0c08a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
L4R1_game.fire
assets/L4R1_game/scene/L4R1_game.fire
+9
-9
L4R1_game.ts
assets/L4R1_game/scene/L4R1_game.ts
+5
-3
No files found.
assets/L4R1_game/scene/L4R1_game.fire
View file @
de031573
...
@@ -5285,7 +5285,7 @@
...
@@ -5285,7 +5285,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
1063,
1063,
18
0,
20
0,
0,
0,
0,
0,
0,
0,
...
@@ -5587,12 +5587,12 @@
...
@@ -5587,12 +5587,12 @@
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
"_target": null,
"_target": null,
"_alignFlags": 3
2
,
"_alignFlags": 3
4
,
"_left": 0,
"_left": 0,
"_right": 0,
"_right": 0,
"_top": 0,
"_top": 0,
"_bottom": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_verticalCenter":
20
0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsRight": true,
...
@@ -5988,8 +5988,8 @@
...
@@ -5988,8 +5988,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
6
00,
"width":
8
00,
"height":
6
00
"height":
8
00
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -6277,7 +6277,7 @@
...
@@ -6277,7 +6277,7 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
8
00,
"width":
12
00,
"height": 50
"height": 50
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -6289,7 +6289,7 @@
...
@@ -6289,7 +6289,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-
4
00,
-
6
00,
500,
500,
0,
0,
0,
0,
...
@@ -6339,7 +6339,7 @@
...
@@ -6339,7 +6339,7 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
7
70,
"width":
11
70,
"height": 30
"height": 30
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -6448,7 +6448,7 @@
...
@@ -6448,7 +6448,7 @@
"__id__": 126
"__id__": 126
},
},
"_enabled": true,
"_enabled": true,
"_N$totalLength":
7
70,
"_N$totalLength":
11
70,
"_N$barSprite": {
"_N$barSprite": {
"__id__": 128
"__id__": 128
},
},
...
...
assets/L4R1_game/scene/L4R1_game.ts
View file @
de031573
...
@@ -171,7 +171,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -171,7 +171,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
id
:
11
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
broom
"
,
url
:
""
,
id
:
11
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
broom
"
,
url
:
""
,
},
},
{
{
id
:
12
,
rJumpId
:
null
,
wJumpId
:
7
,
word
:
"
fly
"
,
url
:
""
,
id
:
12
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
fly
"
,
url
:
""
,
},
},
{
{
id
:
13
,
rJumpId
:
null
,
wJumpId
:
11
,
word
:
"
plate
"
,
url
:
""
,
id
:
13
,
rJumpId
:
null
,
wJumpId
:
11
,
word
:
"
plate
"
,
url
:
""
,
...
@@ -195,7 +195,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -195,7 +195,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
id
:
19
,
rJumpId
:
21
,
wJumpId
:
null
,
word
:
"
crab
"
,
url
:
""
,
id
:
19
,
rJumpId
:
21
,
wJumpId
:
null
,
word
:
"
crab
"
,
url
:
""
,
},
},
{
{
id
:
20
,
rJumpId
:
22
,
wJumpId
:
11
,
word
:
"
clock
"
,
url
:
""
,
id
:
20
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
clock
"
,
url
:
""
,
},
},
{
{
id
:
21
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
green
"
,
url
:
""
,
id
:
21
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
green
"
,
url
:
""
,
...
@@ -476,6 +476,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -476,6 +476,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
async
openCoursView
(
node
,
word
)
{
async
openCoursView
(
node
,
word
)
{
this
.
cover
.
active
=
true
;
this
.
cover
.
active
=
true
;
this
.
cat
.
active
=
false
;
let
probar
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
probar
"
);
let
probar
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
probar
"
);
let
pass
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
pass
"
);
let
pass
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
pass
"
);
let
loss
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
loss
"
);
let
loss
=
this
.
cover
.
getChildByName
(
"
bg
"
).
getChildByName
(
"
loss
"
);
...
@@ -519,7 +520,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -519,7 +520,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
async
_startCourseware
(
word
)
{
async
_startCourseware
(
word
)
{
if
(
!
cc
.
sys
.
isBrowser
&&
window
[
"
courseware
"
]?.
startTest
)
{
if
(
!
cc
.
sys
.
isBrowser
&&
window
[
"
courseware
"
]?.
startTest
)
{
this
.
log
(
"
录音开始 单词:
"
+
word
);
this
.
log
(
"
录音开始 单词:
"
+
word
);
...
@@ -569,6 +569,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -569,6 +569,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
await
asyncDelay
(
1
);
await
asyncDelay
(
1
);
this
.
cover
.
active
=
false
;
this
.
cover
.
active
=
false
;
this
.
cat
.
active
=
true
;
this
.
log
(
"
====评测通过=====
"
);
this
.
log
(
"
====评测通过=====
"
);
this
.
networkHelper
.
sendFrame
({
this
.
networkHelper
.
sendFrame
({
type
:
"
right
"
,
type
:
"
right
"
,
...
@@ -585,6 +586,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -585,6 +586,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playLocalAudio
(
"
wrong
"
);
this
.
playLocalAudio
(
"
wrong
"
);
await
asyncDelay
(
1
);
await
asyncDelay
(
1
);
this
.
cover
.
active
=
false
;
this
.
cover
.
active
=
false
;
this
.
cat
.
active
=
true
;
this
.
log
(
"
====评测不通过=====
"
);
this
.
log
(
"
====评测不通过=====
"
);
this
.
networkHelper
.
sendFrame
({
this
.
networkHelper
.
sendFrame
({
type
:
"
wrong
"
,
type
:
"
wrong
"
,
...
...
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