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
ae8bab5a
Commit
ae8bab5a
authored
May 07, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix block input event
parent
7273b42a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
127 deletions
+81
-127
main.fire
assets/main.fire
+80
-123
BreakingJarController.ts
assets/scripts/GamePlay/BreakingJarController.ts
+1
-0
HuController.ts
assets/scripts/GamePlay/HuController.ts
+0
-4
No files found.
assets/main.fire
View file @
ae8bab5a
...
...
@@ -81,22 +81,22 @@
"__id__": 190
},
{
"__id__": 22
3
"__id__": 22
2
},
{
"__id__": 22
5
"__id__": 22
4
},
{
"__id__": 24
2
"__id__": 24
1
}
],
"_active": true,
"_components": [
{
"__id__": 25
2
"__id__": 25
1
},
{
"__id__": 25
3
"__id__": 25
2
}
],
"_prefab": null,
...
...
@@ -8581,16 +8581,16 @@
"__id__": 191
},
{
"__id__": 21
4
"__id__": 21
3
}
],
"_active": true,
"_components": [
{
"__id__": 22
1
"__id__": 22
0
},
{
"__id__": 22
2
"__id__": 22
1
}
],
"_prefab": null,
...
...
@@ -8604,8 +8604,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width":
110
0,
"height":
200
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -8684,9 +8684,6 @@
"_components": [
{
"__id__": 212
},
{
"__id__": 213
}
],
"_prefab": null,
...
...
@@ -9688,46 +9685,6 @@
"_enabled": true,
"_id": "ce7kjbfMJI6azmjgef3qfN"
},
{
"__type__": "sp.Skeleton",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 191
},
"_enabled": true,
"_materials": [
{
"__uuid__": "7afd064b-113f-480e-b793-8817d19f63c3"
}
],
"paused": false,
"defaultSkin": "default",
"defaultAnimation": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"loop": true,
"premultipliedAlpha": true,
"timeScale": 1,
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_skeletonCache": null,
"_animationName": "",
"_animationQueue": [],
"_headAniInfo": null,
"_playTimes": 0,
"_isAniComplete": true,
"_N$skeletonData": null,
"_N$_defaultCacheMode": 0,
"_N$debugSlots": false,
"_N$debugBones": false,
"_N$debugMesh": false,
"_N$useTint": false,
"_N$enableBatch": false,
"_id": "fdPLj1BaNCl5GR/GJsz/7+"
},
{
"__type__": "cc.Node",
"_name": "SelectButton",
...
...
@@ -9737,13 +9694,13 @@
},
"_children": [
{
"__id__": 21
5
"__id__": 21
4
}
],
"_active": true,
"_components": [
{
"__id__": 2
20
"__id__": 2
19
}
],
"_prefab": null,
...
...
@@ -9799,20 +9756,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 21
4
"__id__": 21
3
},
"_children": [
{
"__id__": 21
6
"__id__": 21
5
}
],
"_active": true,
"_components": [
{
"__id__": 21
8
"__id__": 21
7
},
{
"__id__": 21
9
"__id__": 21
8
}
],
"_prefab": null,
...
...
@@ -9868,13 +9825,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 21
5
"__id__": 21
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
7
"__id__": 21
6
}
],
"_prefab": null,
...
...
@@ -9930,7 +9887,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
6
"__id__": 21
5
},
"_enabled": true,
"_materials": [
...
...
@@ -9965,7 +9922,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
5
"__id__": 21
4
},
"_enabled": true,
"_materials": [
...
...
@@ -9997,7 +9954,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
5
"__id__": 21
4
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -10024,7 +9981,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
4
"__id__": 21
3
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -10097,7 +10054,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 21
5
"__id__": 21
4
},
"_id": "009jyGf0JGyaWytJquX/r/"
},
...
...
@@ -10110,7 +10067,7 @@
},
"_enabled": true,
"selectBtnNode": {
"__id__": 21
4
"__id__": 21
3
},
"_id": "12WntYtI5C+bsPwyWnA236"
},
...
...
@@ -10135,7 +10092,7 @@
"_active": true,
"_components": [
{
"__id__": 22
4
"__id__": 22
3
}
],
"_prefab": null,
...
...
@@ -10191,7 +10148,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
3
"__id__": 22
2
},
"_enabled": true,
"_id": "96hHP+ssxLNpn8/i2AKAyI"
...
...
@@ -10205,22 +10162,22 @@
},
"_children": [
{
"__id__": 22
6
"__id__": 22
5
},
{
"__id__": 22
8
"__id__": 22
7
},
{
"__id__": 23
3
"__id__": 23
2
}
],
"_active": true,
"_components": [
{
"__id__": 2
40
"__id__": 2
39
},
{
"__id__": 24
1
"__id__": 24
0
}
],
"_prefab": null,
...
...
@@ -10276,13 +10233,13 @@
"_name": "Mask copy",
"_objFlags": 0,
"_parent": {
"__id__": 22
5
"__id__": 22
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
7
"__id__": 22
6
}
],
"_prefab": null,
...
...
@@ -10338,7 +10295,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
6
"__id__": 22
5
},
"_enabled": true,
"_materials": [
...
...
@@ -10370,20 +10327,20 @@
"_name": "The",
"_objFlags": 0,
"_parent": {
"__id__": 22
5
"__id__": 22
4
},
"_children": [
{
"__id__": 22
9
"__id__": 22
8
}
],
"_active": true,
"_components": [
{
"__id__": 23
1
"__id__": 23
0
},
{
"__id__": 23
2
"__id__": 23
1
}
],
"_prefab": null,
...
...
@@ -10439,13 +10396,13 @@
"_name": "text1",
"_objFlags": 0,
"_parent": {
"__id__": 22
8
"__id__": 22
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
30
"__id__": 2
29
}
],
"_prefab": null,
...
...
@@ -10501,7 +10458,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
9
"__id__": 22
8
},
"_enabled": true,
"_materials": [
...
...
@@ -10533,7 +10490,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
8
"__id__": 22
7
},
"_enabled": true,
"frames": [
...
...
@@ -10551,7 +10508,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
8
"__id__": 22
7
},
"_enabled": true,
"_materials": [
...
...
@@ -10593,17 +10550,17 @@
"_name": "Replay Button",
"_objFlags": 0,
"_parent": {
"__id__": 22
5
"__id__": 22
4
},
"_children": [
{
"__id__": 23
4
"__id__": 23
3
}
],
"_active": true,
"_components": [
{
"__id__": 23
9
"__id__": 23
8
}
],
"_prefab": null,
...
...
@@ -10659,20 +10616,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 23
3
"__id__": 23
2
},
"_children": [
{
"__id__": 23
5
"__id__": 23
4
}
],
"_active": true,
"_components": [
{
"__id__": 23
7
"__id__": 23
6
},
{
"__id__": 23
8
"__id__": 23
7
}
],
"_prefab": null,
...
...
@@ -10728,13 +10685,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 23
4
"__id__": 23
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
6
"__id__": 23
5
}
],
"_prefab": null,
...
...
@@ -10790,7 +10747,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
5
"__id__": 23
4
},
"_enabled": true,
"_materials": [
...
...
@@ -10825,7 +10782,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
4
"__id__": 23
3
},
"_enabled": true,
"_materials": [
...
...
@@ -10857,7 +10814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
4
"__id__": 23
3
},
"_enabled": true,
"alignMode": 0,
...
...
@@ -10884,7 +10841,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
3
"__id__": 23
2
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -10957,7 +10914,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 23
4
"__id__": 23
3
},
"_id": "adCMRaOEVD5LOjd7MAm9EO"
},
...
...
@@ -10966,7 +10923,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
5
"__id__": 22
4
},
"_enabled": true,
"_id": "bcaw0ZNyRPGoK8ATotq1yF"
...
...
@@ -10976,7 +10933,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
5
"__id__": 22
4
},
"_enabled": true,
"_id": "17J7OqMb1NsbF4iJiNTrDS"
...
...
@@ -10990,22 +10947,22 @@
},
"_children": [
{
"__id__": 24
3
"__id__": 24
2
},
{
"__id__": 24
5
"__id__": 24
4
},
{
"__id__": 24
7
"__id__": 24
6
},
{
"__id__": 24
9
"__id__": 24
8
}
],
"_active": true,
"_components": [
{
"__id__": 25
1
"__id__": 25
0
}
],
"_prefab": null,
...
...
@@ -11061,13 +11018,13 @@
"_name": "beer-bottle-rolling-on-a-sidewalk-82234",
"_objFlags": 0,
"_parent": {
"__id__": 24
2
"__id__": 24
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
4
"__id__": 24
3
}
],
"_prefab": null,
...
...
@@ -11123,7 +11080,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
3
"__id__": 24
2
},
"_enabled": true,
"_clip": {
...
...
@@ -11142,13 +11099,13 @@
"_name": "Cartoon Short Version 2_01",
"_objFlags": 0,
"_parent": {
"__id__": 24
2
"__id__": 24
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
6
"__id__": 24
5
}
],
"_prefab": null,
...
...
@@ -11204,7 +11161,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
5
"__id__": 24
4
},
"_enabled": true,
"_clip": {
...
...
@@ -11223,13 +11180,13 @@
"_name": "tieng_va_cham_chai_thuy_tinh-www_tiengdong_com",
"_objFlags": 0,
"_parent": {
"__id__": 24
2
"__id__": 24
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
8
"__id__": 24
7
}
],
"_prefab": null,
...
...
@@ -11285,7 +11242,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
7
"__id__": 24
6
},
"_enabled": true,
"_clip": {
...
...
@@ -11304,13 +11261,13 @@
"_name": "breaking-a-vase-remix-87091",
"_objFlags": 0,
"_parent": {
"__id__": 24
2
"__id__": 24
1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
50
"__id__": 2
49
}
],
"_prefab": null,
...
...
@@ -11366,7 +11323,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
9
"__id__": 24
8
},
"_enabled": true,
"_clip": {
...
...
@@ -11385,17 +11342,17 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
2
"__id__": 24
1
},
"_enabled": true,
"rollingSound": {
"__id__": 24
4
"__id__": 24
3
},
"breakingSound": {
"__id__": 2
50
"__id__": 2
49
},
"dropSound": {
"__id__": 24
8
"__id__": 24
7
},
"_id": "a5vu6IE1ROn6VO7UPM9J3p"
},
...
...
assets/scripts/GamePlay/BreakingJarController.ts
View file @
ae8bab5a
...
...
@@ -184,6 +184,7 @@ export default class BreakingJarController extends cc.Component {
}
private
onTouchStart
(
event
:
cc
.
Event
.
EventTouch
)
{
console
.
log
(
'onTouchStart'
,
1
)
eventTarget
.
emit
(
STOP_GUILD_TAP
);
const
pos
=
event
.
getLocation
();
const
nodePos
=
this
.
node
.
convertToNodeSpaceAR
(
pos
);
...
...
assets/scripts/GamePlay/HuController.ts
View file @
ae8bab5a
...
...
@@ -5,7 +5,6 @@ const { ccclass, property } = cc._decorator;
@
ccclass
export
default
class
HuController
extends
cc
.
Component
{
private
_spine
:
sp
.
Skeleton
=
null
;
private
_x
:
number
=
0
;
private
_y
:
number
=
0
;
private
_z
:
number
=
0
;
...
...
@@ -14,7 +13,6 @@ export default class HuController extends cc.Component {
private
_debug
:
cc
.
Label
=
null
;
protected
onLoad
():
void
{
this
.
_spine
=
this
.
node
.
getComponent
(
sp
.
Skeleton
);
this
.
_debug
=
this
.
node
.
getComponentInChildren
(
cc
.
Label
);
if
(
cc
.
sys
.
os
===
cc
.
sys
.
OS_IOS
)
{
...
...
@@ -23,8 +21,6 @@ export default class HuController extends cc.Component {
else
{
this
.
scheduleOnce
(
this
.
setDeviceMotion
,
2
);
}
this
.
_spine
.
timeScale
=
0
;
}
private
setDeviceMotionIOS
()
{
...
...
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