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
d48f01e8
Commit
d48f01e8
authored
Mar 31, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update text
parent
e38ff6f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
131 additions
and
32 deletions
+131
-32
main.fire
assets/main.fire
+128
-31
BuaController.ts
assets/scripts/GamePlay/BuaController.ts
+3
-1
No files found.
assets/main.fire
View file @
d48f01e8
...
@@ -90,16 +90,16 @@
...
@@ -90,16 +90,16 @@
"__id__": 73
"__id__": 73
},
},
{
{
"__id__": 8
6
"__id__": 8
8
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 9
2
"__id__": 9
4
},
},
{
{
"__id__": 9
3
"__id__": 9
5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3247,8 +3247,8 @@
...
@@ -3247,8 +3247,8 @@
0,
0,
-0.25881904510252074,
-0.25881904510252074,
0.9659258262890683,
0.9659258262890683,
1.5
,
0.9
,
1.5
,
0.9
,
1.5
1.5
]
]
},
},
...
@@ -3483,15 +3483,18 @@
...
@@ -3483,15 +3483,18 @@
},
},
{
{
"__id__": 77
"__id__": 77
},
{
"__id__": 79
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 8
4
"__id__": 8
6
},
},
{
{
"__id__": 8
5
"__id__": 8
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3659,6 +3662,100 @@
...
@@ -3659,6 +3662,100 @@
"_enabled": true,
"_enabled": true,
"_id": "8aU9CpQKRFmJMSMUCpaItu"
"_id": "8aU9CpQKRFmJMSMUCpaItu"
},
},
{
"__type__": "cc.Node",
"_name": "text1",
"_objFlags": 0,
"_parent": {
"__id__": 73
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 78
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 458,
"height": 145
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-432.087,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "50GemynlFPV78n/RFCBoou"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "95fbff81-21f6-4a58-9bc5-c8fc3f869e8c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "69GMfEgIVFoqVVPRmrHbxB"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "Replay Button",
"_name": "Replay Button",
...
@@ -3668,13 +3765,13 @@
...
@@ -3668,13 +3765,13 @@
},
},
"_children": [
"_children": [
{
{
"__id__":
78
"__id__":
80
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 8
3
"__id__": 8
5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3730,20 +3827,20 @@
...
@@ -3730,20 +3827,20 @@
"_name": "Background",
"_name": "Background",
"_objFlags": 512,
"_objFlags": 512,
"_parent": {
"_parent": {
"__id__": 7
7
"__id__": 7
9
},
},
"_children": [
"_children": [
{
{
"__id__":
79
"__id__":
81
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 8
1
"__id__": 8
3
},
},
{
{
"__id__": 8
2
"__id__": 8
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3799,13 +3896,13 @@
...
@@ -3799,13 +3896,13 @@
"_name": "Label",
"_name": "Label",
"_objFlags": 512,
"_objFlags": 512,
"_parent": {
"_parent": {
"__id__":
78
"__id__":
80
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 8
0
"__id__": 8
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3861,7 +3958,7 @@
...
@@ -3861,7 +3958,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
79
"__id__":
81
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3896,7 +3993,7 @@
...
@@ -3896,7 +3993,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
78
"__id__":
80
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3928,7 +4025,7 @@
...
@@ -3928,7 +4025,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
78
"__id__":
80
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 0,
"alignMode": 0,
...
@@ -3955,7 +4052,7 @@
...
@@ -3955,7 +4052,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 7
7
"__id__": 7
9
},
},
"_enabled": true,
"_enabled": true,
"_normalMaterial": null,
"_normalMaterial": null,
...
@@ -4028,7 +4125,7 @@
...
@@ -4028,7 +4125,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
},
"_N$target": {
"_N$target": {
"__id__":
78
"__id__":
80
},
},
"_id": "adCMRaOEVD5LOjd7MAm9EO"
"_id": "adCMRaOEVD5LOjd7MAm9EO"
},
},
...
@@ -4061,16 +4158,16 @@
...
@@ -4061,16 +4158,16 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 8
7
"__id__": 8
9
},
},
{
{
"__id__":
89
"__id__":
91
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 9
1
"__id__": 9
3
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4126,13 +4223,13 @@
...
@@ -4126,13 +4223,13 @@
"_name": "beer-bottle-rolling-on-a-sidewalk-82234",
"_name": "beer-bottle-rolling-on-a-sidewalk-82234",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 8
6
"__id__": 8
8
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
88
"__id__":
90
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4188,7 +4285,7 @@
...
@@ -4188,7 +4285,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 8
7
"__id__": 8
9
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -4207,13 +4304,13 @@
...
@@ -4207,13 +4304,13 @@
"_name": "Cartoon Short Version 2_01",
"_name": "Cartoon Short Version 2_01",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 8
6
"__id__": 8
8
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 9
0
"__id__": 9
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4269,7 +4366,7 @@
...
@@ -4269,7 +4366,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
89
"__id__":
91
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -4288,11 +4385,11 @@
...
@@ -4288,11 +4385,11 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 8
6
"__id__": 8
8
},
},
"_enabled": true,
"_enabled": true,
"rollingSound": {
"rollingSound": {
"__id__":
88
"__id__":
90
},
},
"_id": "a5vu6IE1ROn6VO7UPM9J3p"
"_id": "a5vu6IE1ROn6VO7UPM9J3p"
},
},
...
...
assets/scripts/GamePlay/BuaController.ts
View file @
d48f01e8
...
@@ -12,6 +12,7 @@ export default class BuaController extends cc.Component {
...
@@ -12,6 +12,7 @@ export default class BuaController extends cc.Component {
private
_actions
:
Function
[]
=
[];
private
_actions
:
Function
[]
=
[];
private
_skins
=
[
"Bua"
,
"Ga"
,
"Gai_lung"
,
"Gay"
];
private
_skins
=
[
"Bua"
,
"Ga"
,
"Gai_lung"
,
"Gay"
];
private
_isPlay
=
false
;
private
_isPlay
=
false
;
private
_beatTotal
=
[
1
,
2
,
3
,
4
];
protected
onLoad
():
void
{
protected
onLoad
():
void
{
this
.
spine
=
this
.
node
.
getComponent
(
sp
.
Skeleton
);
this
.
spine
=
this
.
node
.
getComponent
(
sp
.
Skeleton
);
...
@@ -30,7 +31,8 @@ export default class BuaController extends cc.Component {
...
@@ -30,7 +31,8 @@ export default class BuaController extends cc.Component {
private
onTouchStart
():
void
{
private
onTouchStart
():
void
{
this
.
_actions
[
this
.
_count
].
bind
(
this
)();
this
.
_actions
[
this
.
_count
].
bind
(
this
)();
const
beat
=
this
.
_beatTotal
[
Global
.
tool
];
console
.
log
(
'beat'
,
beat
)
this
.
_count
=
(
this
.
_count
+
1
)
%
this
.
_actions
.
length
;
this
.
_count
=
(
this
.
_count
+
1
)
%
this
.
_actions
.
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