Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op_09
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
op_09
Commits
30c7c2bd
Commit
30c7c2bd
authored
Dec 28, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: replay
parent
979205fe
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
891 additions
and
131 deletions
+891
-131
op_09.fire
assets/op_09/scene/op_09.fire
+784
-131
op_09.js
assets/op_09/scene/op_09.js
+35
-0
bg_circle.png
assets/op_09/textures/bg_circle.png
+0
-0
bg_circle.png.meta
assets/op_09/textures/bg_circle.png.meta
+36
-0
btn_replay.png
assets/op_09/textures/btn_replay.png
+0
-0
btn_replay.png.meta
assets/op_09/textures/btn_replay.png.meta
+36
-0
No files found.
assets/op_09/scene/op_09.fire
View file @
30c7c2bd
This diff is collapsed.
Click to expand it.
assets/op_09/scene/op_09.js
View file @
30c7c2bd
...
...
@@ -385,6 +385,8 @@ cc.Class({
showNextBtn
()
{
onHomeworkFinish
();
this
.
showRestartBtn
();
const
btnNext
=
cc
.
find
(
'
Canvas/bg/btnNext
'
);
btnNext
.
active
=
true
;
},
...
...
@@ -426,6 +428,39 @@ cc.Class({
},
showRestartBtn
()
{
const
btn
=
cc
.
find
(
'
Canvas/bg/btnReplay
'
);
btn
.
active
=
true
;
btn
.
off
(
'
click
'
);
btn
.
on
(
'
click
'
,
()
=>
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
middleLayer
.
getComponent
(
'
middleLayer
'
).
reloadBundle
();
}
else
{
console
.
log
(
'
没有middleLayer
'
);
}
});
const
circle
=
cc
.
find
(
'
Canvas/bg/btnReplay/bg_circle
'
);
cc
.
tween
(
circle
)
.
set
({
scale
:
0.8
,
opacity
:
255
})
.
to
(
2
,
{
scale
:
1.2
,
opacity
:
0
})
.
union
()
.
repeatForever
()
.
start
();
},
hideRestartBtn
()
{
console
.
log
(
'
hideRestartBtn
'
);
const
btn
=
cc
.
find
(
'
Canvas/bg/btnReplay
'
);
btn
.
active
=
false
;
const
circle
=
cc
.
find
(
'
Canvas/bg/btnReplay/bg_circle
'
);
circle
.
stopAllActions
();
circle
.
scale
=
0.8
;
circle
.
opacity
=
255
;
},
...
...
assets/op_09/textures/bg_circle.png
0 → 100644
View file @
30c7c2bd
7.02 KB
assets/op_09/textures/bg_circle.png.meta
0 → 100644
View file @
30c7c2bd
{
"ver": "2.3.5",
"uuid": "40a7f7d6-3f30-46c7-b9e4-1d5fcfc0c648",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 409,
"height": 409,
"platformSettings": {},
"subMetas": {
"bg_circle": {
"ver": "1.0.4",
"uuid": "75bb0910-bb15-4daf-9a6d-6873c400a148",
"rawTextureUuid": "40a7f7d6-3f30-46c7-b9e4-1d5fcfc0c648",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 409,
"height": 409,
"rawWidth": 409,
"rawHeight": 409,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/op_09/textures/btn_replay.png
0 → 100644
View file @
30c7c2bd
20.1 KB
assets/op_09/textures/btn_replay.png.meta
0 → 100644
View file @
30c7c2bd
{
"ver": "2.3.5",
"uuid": "87cc865a-7ac0-44b4-8919-3b01f815748f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 262,
"height": 268,
"platformSettings": {},
"subMetas": {
"btn_replay": {
"ver": "1.0.4",
"uuid": "c2f5963d-2ed1-4add-91b8-f3c4ff0d893e",
"rawTextureUuid": "87cc865a-7ac0-44b4-8919-3b01f815748f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 262,
"height": 268,
"rawWidth": 262,
"rawHeight": 268,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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