Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BOY04
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
BOY04
Commits
baa47a6f
Commit
baa47a6f
authored
Jul 08, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
7.8修改
parent
7076bf96
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
470 additions
and
457 deletions
+470
-457
BOY04.fire
assets/BOY04/scene/BOY04.fire
+452
-438
BOY04.ts
assets/BOY04/scene/BOY04.ts
+16
-17
check_1.png
assets/BOY04/textures/word/check_1.png
+0
-0
check_1.png.meta
assets/BOY04/textures/word/check_1.png.meta
+2
-2
No files found.
assets/BOY04/scene/BOY04.fire
View file @
baa47a6f
This diff is collapsed.
Click to expand it.
assets/BOY04/scene/BOY04.ts
View file @
baa47a6f
...
...
@@ -87,29 +87,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
showGame
();
}
private
touchOver
()
{
onHomeworkFinish
();
this
.
playLocalAudio
(
"
finish
"
);
let
data
:
any
=
{};
let
questions
=
this
.
logs
.
concat
();
let
score
=
0
;
questions
.
forEach
(
q
=>
{
score
+=
q
.
score
;
})
data
.
questions
=
questions
;
data
.
score
=
score
;
console
.
log
(
data
);
onHomeworkFinish
(
data
);
}
private
gameOver
()
{
setTimeout
(()
=>
{
this
.
playLocalAudio
(
"
finish
"
);
let
btn_check
=
cc
.
find
(
"
btn_check
"
,
this
.
node
);
btn_check
.
getComponent
(
cc
.
Button
).
interactable
=
true
;
// let mouse_end = pg.view.find(this, "mouse_end");
// mouse_end.active = true;
// mouse_end.getComponent("mrbr04_mouse_end").play().then(() => {
//结算
let
data
:
any
=
{};
let
questions
=
this
.
logs
.
concat
();
let
score
=
0
;
questions
.
forEach
(
q
=>
{
score
+=
q
.
score
;
})
data
.
questions
=
questions
;
data
.
score
=
score
;
console
.
log
(
data
);
onHomeworkFinish
();
// })
},
1
800
);
},
1
);
}
private
showGame
()
{
if
(
this
.
roundIdx
>=
this
.
data
.
questions
.
length
)
{
...
...
@@ -185,7 +184,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// let isText = this.upArr[0].type == 1;
let
isText
=
type
==
"
txt
"
;
if
(
this
.
upArr
.
length
==
5
)
{
item
=
isText
?
cc
.
instantiate
(
this
.
item5_
lef
t
)
:
cc
.
instantiate
(
this
.
item5_pic
);
item
=
isText
?
cc
.
instantiate
(
this
.
item5_
righ
t
)
:
cc
.
instantiate
(
this
.
item5_pic
);
}
else
if
(
this
.
upArr
.
length
==
4
)
{
item
=
isText
?
cc
.
instantiate
(
this
.
item4_text
)
:
cc
.
instantiate
(
this
.
item4_pic
);
...
...
@@ -218,9 +217,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
private
getlayoutSpacing
()
{
if
(
this
.
upArr
.
length
==
2
)
return
{
sY
:
100
,
top
:
100
};
if
(
this
.
upArr
.
length
==
3
)
return
{
sY
:
20
,
top
:
2
0
};
if
(
this
.
upArr
.
length
==
4
)
return
{
sY
:
15
,
top
:
15
};
if
(
this
.
upArr
.
length
==
5
)
return
{
sY
:
0
,
top
:
7
};
if
(
this
.
upArr
.
length
==
3
)
return
{
sY
:
0
,
top
:
4
0
};
if
(
this
.
upArr
.
length
==
4
)
return
{
sY
:
0
,
top
:
40
};
if
(
this
.
upArr
.
length
==
5
)
return
{
sY
:
-
9
,
top
:
30
};
}
private
showLayout
()
{
...
...
assets/BOY04/textures/word/check_1.png
View replaced file @
7076bf96
View file @
baa47a6f
6.84 KB
|
W:
|
H:
6.69 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/BOY04/textures/word/check_1.png.meta
View file @
baa47a6f
...
...
@@ -18,11 +18,11 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX":
0
,
"offsetX":
-0.5
,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1
10
,
"width": 1
09
,
"height": 110,
"rawWidth": 110,
"rawHeight": 110,
...
...
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