Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
extreme_skiing
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
extreme_skiing
Commits
773fa130
Commit
773fa130
authored
Aug 17, 2022
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8.17调整
parent
07d69699
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
15 deletions
+18
-15
extreme_skiing.fire
assets/extreme_skiing/scene/extreme_skiing.fire
+7
-7
layout_game.ts
assets/extreme_skiing/scene/game/layout_game.ts
+5
-3
Game.ts
assets/extreme_skiing/scene/tool/Game.ts
+6
-5
No files found.
assets/extreme_skiing/scene/extreme_skiing.fire
View file @
773fa130
...
...
@@ -3887,8 +3887,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-5
,
3
0,
0
,
0,
0,
0,
0,
...
...
@@ -3969,7 +3969,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 7
60
,
"width": 7
45
,
"height": 250.39999999999998
},
"_anchorPoint": {
...
...
@@ -3982,7 +3982,7 @@
"ctor": "Float64Array",
"array": [
0,
67.265
,
19
,
0,
0,
0,
...
...
@@ -4035,7 +4035,7 @@
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign":
1
,
"_N$verticalAlign":
0
,
"_N$fontFamily": "Arial",
"_N$overflow": 3,
"_N$cacheMode": 0,
...
...
@@ -4082,7 +4082,7 @@
"ctor": "Float64Array",
"array": [
0,
-1
35
.598,
-1
71
.598,
0,
0,
0,
...
...
@@ -4246,7 +4246,7 @@
"ctor": "Float64Array",
"array": [
0,
52
.84,
35
.84,
0,
0,
0,
...
...
assets/extreme_skiing/scene/game/layout_game.ts
View file @
773fa130
...
...
@@ -114,11 +114,13 @@ export default class layout_game extends cc.Component {
data
.
touchRight
=
true
;
this
.
rightNum
++
;
item
.
opacity
=
0
;
Game
.
getIns
().
player
.
addRight
();
pg
.
audio
.
playAudioByUrl
(
data
.
audioUrl
,
()
=>
{
let
pag
=
Game
.
getIns
().
getCurrentPage
()
if
(
!
pag
.
checkMore
||
this
.
rightNum
>
1
)
{
if
(
this
.
rightNum
>=
pag
.
rNum
)
{
Game
.
getIns
().
player
.
addRight
();
this
.
layout_same
.
removeAllChildren
();
cc
.
find
(
"
bg_ornament
"
,
this
.
node
).
active
=
false
;
cc
.
find
(
"
bg_ornament2
"
,
this
.
node
).
active
=
false
;
this
.
clickRight
().
then
(()
=>
{
pg
.
event
.
emit
(
"
game_time_over
"
);
});
...
...
@@ -131,7 +133,7 @@ export default class layout_game extends cc.Component {
this
.
wrongNum
++
;
pg
.
audio
.
playAudioByUrl
(
data
.
audioUrl
);
this
.
clickError
().
then
(()
=>
{
if
(
this
.
wrongNum
>=
2
||
(
Game
.
getIns
().
getCurrentPage
().
checkMore
&&
this
.
rightNum
>=
1
)
)
{
if
(
this
.
wrongNum
>=
2
)
{
pg
.
event
.
emit
(
"
game_time_over
"
);
}
this
.
touch
=
false
;
...
...
assets/extreme_skiing/scene/tool/Game.ts
View file @
773fa130
...
...
@@ -199,11 +199,12 @@ export default class Game {
this
.
page
+=
1
;
}
get
getTotla
()
{
this
.
total
=
0
;
this
.
lists
.
forEach
((
item
)
=>
{
this
.
total
+=
item
.
rNum
;
})
return
this
.
total
;
return
this
.
lists
.
length
;
// this.total = 0;
// this.lists.forEach((item) => {
// this.total += item.rNum;
// })
// return this.total;
}
get
isOver
()
{
return
this
.
page
>
this
.
lists
.
length
;
...
...
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