Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MRBR02
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
MRBR02
Commits
5ce350d8
Commit
5ce350d8
authored
Apr 26, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
效果调整
parent
c7c9e3c5
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
554 additions
and
269 deletions
+554
-269
img_jili_03大.png
assets/MRBR02/img/其他元素/img_jili_03大.png
+0
-0
img_jili_03大.png.meta
assets/MRBR02/img/其他元素/img_jili_03大.png.meta
+37
-0
MRBR02.fire
assets/MRBR02/scene/MRBR02.fire
+488
-253
MRBR02.ts
assets/MRBR02/scene/MRBR02.ts
+29
-16
No files found.
assets/MRBR02/img/其他元素/img_jili_03大.png
0 → 100644
View file @
5ce350d8
125 KB
assets/MRBR02/img/其他元素/img_jili_03大.png.meta
0 → 100644
View file @
5ce350d8
{
"ver": "2.3.5",
"uuid": "63b857a9-da4c-47b7-bdc3-e4cd19b60f0b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 200,
"height": 142,
"platformSettings": {},
"subMetas": {
"img_jili_03大": {
"ver": "1.0.4",
"uuid": "5283c4c3-1c25-4d0a-b870-0feb5eaf51fc",
"rawTextureUuid": "63b857a9-da4c-47b7-bdc3-e4cd19b60f0b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 1,
"offsetY": -0.5,
"trimX": 4,
"trimY": 1,
"width": 194,
"height": 141,
"rawWidth": 200,
"rawHeight": 142,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/MRBR02/scene/MRBR02.fire
View file @
5ce350d8
This diff is collapsed.
Click to expand it.
assets/MRBR02/scene/MRBR02.ts
View file @
5ce350d8
...
...
@@ -54,6 +54,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
event
.
emit
(
"
mouse_start_play
"
,
{
voice
:
Game
.
getIns
().
aniEnter
.
audioUrl
,
time
:
Game
.
getIns
().
aniEnter
.
time
});
}
initEvent
()
{
this
.
schedule
(
this
.
updateLoop
,
1
/
60
)
pg
.
view
.
touchOn
(
pg
.
view
.
find
(
this
,
'
bg/bg_card/btn_check
'
),
this
.
onTouchCheck
,
this
);
pg
.
event
.
on
(
"
startGame
"
,
()
=>
{
this
.
startGame
()
})
...
...
@@ -73,6 +74,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
nextPage
();
}
nextPage
()
{
this
.
checked
=
false
;
this
.
cards
=
[];
this
.
cardBgs
=
[];
this
.
currentCards
=
[];
...
...
@@ -242,7 +244,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
onItemTouchCancel
()
{
}
checked
:
boolean
;
updateCheckBtn
()
{
if
(
this
.
checked
)
{
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
bg/bg_card/btn_check
'
),
false
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
bg/bg_card/btn_check_grey
'
),
false
)
return
;
}
let
isFull
=
this
.
checkFull
();
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
bg/bg_card/btn_check
'
),
isFull
)
pg
.
view
.
visible
(
pg
.
view
.
find
(
this
,
'
bg/bg_card/btn_check_grey
'
),
!
isFull
)
...
...
@@ -266,6 +274,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
return
;
}
this
.
onTouchCheckCantouch
=
true
;
this
.
checked
=
true
;
let
page
=
Game
.
getIns
().
getCurrentPage
();
if
(
!!
page
.
image
)
{
this
.
layout_card
.
active
=
false
;
...
...
@@ -274,7 +283,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
img
=
pg
.
view
.
find
(
this
.
layout_card_result
,
"
img
"
);
pg
.
view
.
setNetImg
(
img
,
page
.
image
,
{
w
:
340
,
h
:
150
})
}
pg
.
audio
.
playAudioByUrl
(
page
.
audio
).
then
(()
=>
{
if
(
!
page
.
audio
)
{
pg
.
event
.
emit
(
"
mouse_add
"
);
setTimeout
(()
=>
{
this
.
updateCardResult
();
...
...
@@ -287,8 +296,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
onTouchCheckCantouch
=
false
;
})
},
2000
);
}
)
if
(
!
page
.
audio
)
{
}
else
{
pg
.
audio
.
playAudioByUrl
(
page
.
audio
).
then
(()
=>
{
pg
.
event
.
emit
(
"
mouse_add
"
);
setTimeout
(()
=>
{
this
.
updateCardResult
();
...
...
@@ -301,6 +310,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
onTouchCheckCantouch
=
false
;
})
},
2000
);
})
}
}
updateCardResult
()
{
...
...
@@ -350,8 +360,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
progressbar_red
=
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
progressbar_red
'
);
let
sprite
=
progressbar_red
.
getComponent
(
cc
.
Sprite
);
sprite
.
fillRange
=
1
;
let
countdown
=
pg
.
view
.
find
(
this
.
layout_lollipop
,
'
countdown
'
);
pg
.
audio
.
playAudioByNode
(
countdown
);
let
i2
=
setInterval
(()
=>
{
sprite
.
fillRange
-=
0.0
09
;
sprite
.
fillRange
-=
0.0
1
;
},
30
)
setTimeout
(()
=>
{
...
...
@@ -388,7 +401,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
update
()
{
update
Loop
()
{
this
.
updateCheckBtn
();
this
.
updateProgress
();
}
...
...
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