Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dap-hu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Vũ Gia Vương
dap-hu
Commits
3aa52172
Commit
3aa52172
authored
May 07, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add fog in jar
parent
8e2c8cf7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2268 additions
and
445 deletions
+2268
-445
main.fire
assets/main.fire
+2257
-426
BreakingJarController.ts
assets/scripts/GamePlay/BreakingJarController.ts
+11
-19
No files found.
assets/main.fire
View file @
3aa52172
This diff is collapsed.
Click to expand it.
assets/scripts/GamePlay/BreakingJarController.ts
View file @
3aa52172
...
...
@@ -13,6 +13,12 @@ export default class BreakingJarController extends cc.Component {
private
hammerNode
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
private
behindJar
:
cc
.
Node
=
null
;
@
property
(
cc
.
ParticleSystem
)
private
particleFont
:
cc
.
ParticleSystem
=
null
;
@
property
(
cc
.
ParticleSystem
)
private
particleBehind
:
cc
.
ParticleSystem
=
null
;
@
property
(
cc
.
Node
)
private
mask
:
cc
.
Node
=
null
;
private
_spine
:
sp
.
Skeleton
=
null
;
private
_skins
=
[
"Ga"
,
"Gai_lung"
,
"Gay"
,
"Bua"
,];
...
...
@@ -46,6 +52,10 @@ export default class BreakingJarController extends cc.Component {
this
.
_fragmentsPosition
=
this
.
_fontFragments
.
map
(
item
=>
item
.
position
.
clone
());
this
.
_behindJarChild
=
this
.
behindJar
.
children
.
map
(
item
=>
item
.
getComponent
(
BehindFragment
));
this
.
_behindJarChildPosition
=
this
.
behindJar
.
children
.
map
(
item
=>
item
.
position
.
clone
());
this
.
particleFont
.
enabled
=
false
;
this
.
particleBehind
.
enabled
=
false
;
this
.
mask
.
active
=
false
;
}
private
beatGuild
()
{
...
...
@@ -100,7 +110,7 @@ export default class BreakingJarController extends cc.Component {
private
checkFragment
(
fragmentNode
:
cc
.
Node
)
{
const
fontFragment
=
this
.
_fontFragments
.
findIndex
(
item
=>
item
===
fragmentNode
);
const
behindFragment
=
this
.
_behindJarChild
[
fontFragment
];
behindFragment
.
onDrop
();
//
behindFragment.onDrop();
if
(
this
.
_isEnd
)
{
return
;
...
...
@@ -120,28 +130,10 @@ export default class BreakingJarController extends cc.Component {
const
isDropTop
=
this
.
fragmentSpecialNodes
.
every
(
item
=>
item
.
getComponent
(
FragmentJarController
).
isDropped
);
if
(
isSpecial
&&
isDropTop
)
{
console
.
log
(
'this._countFragment'
,
this
.
_countFragment
)
eventTarget
.
emit
(
DROP_TOP_FRAGMENT
);
}
}
// private checkFragment(name: string) {
// if (this._isEnd) {
// return;
// }
// if (!name.includes('nap')) {
// this._bodyFragments.push(name);
// }
// this._countFragment++;
// if (this._countFragment == 8) {
// this.scheduleOnce(() => eventTarget.emit(SHOW_CARD_POPUP), 1.5);
// this._isEnd = true;
// }
// if (this._bodyFragments.length == 6) {
// eventTarget.emit(DROP_FRAGMENT);
// }
// }
private
onTouchStart
(
event
:
cc
.
Event
.
EventTouch
)
{
eventTarget
.
emit
(
STOP_GUILD_TAP
);
const
pos
=
event
.
getLocation
();
...
...
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