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
4f8ba74d
Commit
4f8ba74d
authored
May 11, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update loading btn
parent
5613eb34
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
174 additions
and
117 deletions
+174
-117
home.fire
assets/Scenes/home.fire
+102
-98
main.fire
assets/Scenes/main.fire
+6
-9
load-icon-png-7957.png
assets/resources/load-icon-png-7957.png
+0
-0
load-icon-png-7957.png.meta
assets/resources/load-icon-png-7957.png.meta
+38
-0
Group 1321316338 (1).png.meta
assets/resources/popup/Group 1321316338 (1).png.meta
+3
-3
Group 1321316338.png.meta
assets/resources/popup/Group 1321316338.png.meta
+3
-3
sprite2.png
assets/resources/sprite2.png
+0
-0
sprite2.png.meta
assets/resources/sprite2.png.meta
+3
-3
StartScreen.ts
assets/scripts/UI/StartScreen.ts
+19
-1
No files found.
assets/Scenes/home.fire
View file @
4f8ba74d
...
@@ -512,10 +512,16 @@
...
@@ -512,10 +512,16 @@
"_children": [
"_children": [
{
{
"__id__": 11
"__id__": 11
},
{
"__id__": 13
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
"__id__": 15
},
{
{
"__id__": 16
"__id__": 16
}
}
...
@@ -532,7 +538,7 @@
...
@@ -532,7 +538,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 300,
"width": 300,
"height": 1
0
0
"height": 1
2
0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -552,7 +558,7 @@
...
@@ -552,7 +558,7 @@
1,
1,
1,
1,
1,
1,
1
0
]
]
},
},
"_eulerAngles": {
"_eulerAngles": {
...
@@ -570,38 +576,31 @@
...
@@ -570,38 +576,31 @@
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "
Background
",
"_name": "
Label
",
"_objFlags":
512
,
"_objFlags":
0
,
"_parent": {
"_parent": {
"__id__": 10
"__id__": 10
},
},
"_children": [
"_children": [],
{
"__id__": 12
}
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 14
"__id__": 12
},
{
"__id__": 15
}
}
],
],
"_prefab": null,
"_prefab": null,
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r":
255
,
"r":
33
,
"g":
255
,
"g":
14
,
"b": 25
5
,
"b": 25
0
,
"a": 255
"a": 255
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 3
5
0,
"width": 3
0
0,
"height": 1
5
0
"height": 1
0
0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -613,7 +612,7 @@
...
@@ -613,7 +612,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
-2
0,
0,
0,
0,
0,
0,
0,
0,
...
@@ -621,7 +620,7 @@
...
@@ -621,7 +620,7 @@
1,
1,
1,
1,
1,
1,
0
1
]
]
},
},
"_eulerAngles": {
"_eulerAngles": {
...
@@ -635,34 +634,69 @@
...
@@ -635,34 +634,69 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "47HO3ZbotOO43aKp4rJVNV"
"_id": "96t7hyyopP6rYtOt/OAFxd"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "ĐẬP",
"_N$string": "ĐẬP",
"_fontSize": 60,
"_lineHeight": 65,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "63d032ad-e87d-42a0-84a8-137e2034682c"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 1,
"_id": "a1mHA4RBFJ248dwjl+kdCc"
},
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "L
abel
",
"_name": "L
oading
",
"_objFlags":
512
,
"_objFlags":
0
,
"_parent": {
"_parent": {
"__id__": 1
1
"__id__": 1
0
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
3
"__id__": 1
4
}
}
],
],
"_prefab": null,
"_prefab": null,
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
"__type__": "cc.Color",
"__type__": "cc.Color",
"r":
33
,
"r":
255
,
"g":
14
,
"g":
255
,
"b": 25
0
,
"b": 25
5
,
"a": 255
"a": 255
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
3
00,
"width":
1
00,
"height": 100
"height": 100
},
},
"_anchorPoint": {
"_anchorPoint": {
...
@@ -675,7 +709,7 @@
...
@@ -675,7 +709,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
2
0
,
2,
0,
0,
0,
0,
0,
0,
...
@@ -697,49 +731,14 @@
...
@@ -697,49 +731,14 @@
"_is3DNode": false,
"_is3DNode": false,
"_groupIndex": 0,
"_groupIndex": 0,
"groupIndex": 0,
"groupIndex": 0,
"_id": "96t7hyyopP6rYtOt/OAFxd"
"_id": "23SoiyH9hB5q5Q70bGirrp"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "ĐẬP",
"_N$string": "ĐẬP",
"_fontSize": 60,
"_lineHeight": 65,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "63d032ad-e87d-42a0-84a8-137e2034682c"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 1,
"_id": "a1mHA4RBFJ248dwjl+kdCc"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
1
"__id__": 1
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -750,9 +749,9 @@
...
@@ -750,9 +749,9 @@
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_spriteFrame": {
"_spriteFrame": {
"__uuid__": "
85bb5d50-034a-457e-9b4c-349c69f5b672
"
"__uuid__": "
133b7ec9-8788-4307-9fa1-dfd3968544aa
"
},
},
"_type":
1
,
"_type":
0
,
"_sizeMode": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillType": 0,
"_fillCenter": {
"_fillCenter": {
...
@@ -764,34 +763,7 @@
...
@@ -764,34 +763,7 @@
"_fillRange": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": null,
"_id": "d7RrxzZu5O26E+LNmx8Fyb"
"_id": "00sk/KT6RBSKQn7/VNkC5a"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"alignMode": 0,
"_target": null,
"_alignFlags": 45,
"_left": -25,
"_right": -25,
"_top": -5,
"_bottom": -45,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 40,
"_id": "e9GFN+nmpKgZ0AP+pmhqho"
},
},
{
{
"__type__": "cc.Button",
"__type__": "cc.Button",
...
@@ -871,10 +843,42 @@
...
@@ -871,10 +843,42 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
},
"_N$target": {
"_N$target": {
"__id__": 1
1
"__id__": 1
0
},
},
"_id": "f90tlUC7RA1YLuKG15c4Pu"
"_id": "f90tlUC7RA1YLuKG15c4Pu"
},
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "85bb5d50-034a-457e-9b4c-349c69f5b672"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c81W8jWQ5CebeONYgoGQTR"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "beer-bottle-rolling-on-a-sidewalk-82234",
"_name": "beer-bottle-rolling-on-a-sidewalk-82234",
...
...
assets/Scenes/main.fire
View file @
4f8ba74d
...
@@ -665,9 +665,6 @@
...
@@ -665,9 +665,6 @@
"__id__": 7
"__id__": 7
},
},
"_enabled": true,
"_enabled": true,
"rollingSound": {
"__id__": 9
},
"breakingSound": {
"breakingSound": {
"__id__": 13
"__id__": 13
},
},
...
@@ -18259,7 +18256,7 @@
...
@@ -18259,7 +18256,7 @@
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "Background",
"_name": "Background",
"_objFlags":
512
,
"_objFlags":
0
,
"_parent": {
"_parent": {
"__id__": 469
"__id__": 469
},
},
...
@@ -18289,7 +18286,7 @@
...
@@ -18289,7 +18286,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 300,
"width": 300,
"height": 1
2
0
"height": 1
1
0
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -18328,7 +18325,7 @@
...
@@ -18328,7 +18325,7 @@
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "Label",
"_name": "Label",
"_objFlags":
512
,
"_objFlags":
0
,
"_parent": {
"_parent": {
"__id__": 470
"__id__": 470
},
},
...
@@ -18363,7 +18360,7 @@
...
@@ -18363,7 +18360,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
1
0
,
1
.632
,
0,
0,
0,
0,
0,
0,
...
@@ -18467,8 +18464,8 @@
...
@@ -18467,8 +18464,8 @@
"_alignFlags": 45,
"_alignFlags": 45,
"_left": 0,
"_left": 0,
"_right": 0,
"_right": 0,
"_top":
0
,
"_top":
5
,
"_bottom":
0
,
"_bottom":
5
,
"_verticalCenter": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsLeft": true,
...
...
assets/resources/load-icon-png-7957.png
0 → 100644
View file @
4f8ba74d
6.97 KB
assets/resources/load-icon-png-7957.png.meta
0 → 100644
View file @
4f8ba74d
{
"ver": "2.3.7",
"uuid": "2e4b1664-6b27-4287-a3e3-9e12940e70d8",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 178,
"height": 178,
"platformSettings": {},
"subMetas": {
"load-icon-png-7957": {
"ver": "1.0.6",
"uuid": "133b7ec9-8788-4307-9fa1-dfd3968544aa",
"importer": "sprite-frame",
"rawTextureUuid": "2e4b1664-6b27-4287-a3e3-9e12940e70d8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 178,
"height": 178,
"rawWidth": 178,
"rawHeight": 178,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/resources/popup/Group 1321316338 (1).png.meta
View file @
4f8ba74d
...
@@ -17,15 +17,15 @@
...
@@ -17,15 +17,15 @@
"uuid": "5779a8a5-b352-4394-976c-55de90c8d79d",
"uuid": "5779a8a5-b352-4394-976c-55de90c8d79d",
"importer": "sprite-frame",
"importer": "sprite-frame",
"rawTextureUuid": "7a24c42a-1426-433f-ba40-edc0989e9546",
"rawTextureUuid": "7a24c42a-1426-433f-ba40-edc0989e9546",
"trimType": "
auto
",
"trimType": "
custom
",
"trimThreshold": 1,
"trimThreshold": 1,
"rotated": false,
"rotated": false,
"offsetX": 0,
"offsetX": 0,
"offsetY": 0,
"offsetY":
1
0,
"trimX": 0,
"trimX": 0,
"trimY": 0,
"trimY": 0,
"width": 306,
"width": 306,
"height": 1
3
0,
"height": 1
1
0,
"rawWidth": 306,
"rawWidth": 306,
"rawHeight": 130,
"rawHeight": 130,
"borderTop": 0,
"borderTop": 0,
...
...
assets/resources/popup/Group 1321316338.png.meta
View file @
4f8ba74d
...
@@ -17,15 +17,15 @@
...
@@ -17,15 +17,15 @@
"uuid": "85bb5d50-034a-457e-9b4c-349c69f5b672",
"uuid": "85bb5d50-034a-457e-9b4c-349c69f5b672",
"importer": "sprite-frame",
"importer": "sprite-frame",
"rawTextureUuid": "e24a8162-cc8b-4809-9345-7618c74724ab",
"rawTextureUuid": "e24a8162-cc8b-4809-9345-7618c74724ab",
"trimType": "
auto
",
"trimType": "
custom
",
"trimThreshold": 1,
"trimThreshold": 1,
"rotated": false,
"rotated": false,
"offsetX": 0,
"offsetX": 0,
"offsetY":
0
.5,
"offsetY":
8
.5,
"trimX": 0,
"trimX": 0,
"trimY": 0,
"trimY": 0,
"width": 162,
"width": 162,
"height":
73
,
"height":
57
,
"rawWidth": 162,
"rawWidth": 162,
"rawHeight": 74,
"rawHeight": 74,
"borderTop": 0,
"borderTop": 0,
...
...
assets/resources/sprite2.png
View replaced file @
5613eb34
View file @
4f8ba74d
102 KB
|
W:
|
H:
21 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/resources/sprite2.png.meta
View file @
4f8ba74d
...
@@ -21,11 +21,11 @@
...
@@ -21,11 +21,11 @@
"trimThreshold": 1,
"trimThreshold": 1,
"rotated": false,
"rotated": false,
"offsetX": 0,
"offsetX": 0,
"offsetY":
0
,
"offsetY":
-0.5
,
"trimX": 0,
"trimX": 0,
"trimY":
0
,
"trimY":
1
,
"width": 447,
"width": 447,
"height": 52
9
,
"height": 52
8
,
"rawWidth": 447,
"rawWidth": 447,
"rawHeight": 529,
"rawHeight": 529,
"borderTop": 0,
"borderTop": 0,
...
...
assets/scripts/UI/StartScreen.ts
View file @
4f8ba74d
...
@@ -11,8 +11,17 @@ export default class StartScreen extends cc.Component {
...
@@ -11,8 +11,17 @@ export default class StartScreen extends cc.Component {
@
property
(
cc
.
AudioSource
)
@
property
(
cc
.
AudioSource
)
private
rollingSound
:
cc
.
AudioSource
=
null
;
private
rollingSound
:
cc
.
AudioSource
=
null
;
private
_text
:
cc
.
Node
=
null
;
private
_loading
:
cc
.
Node
=
null
;
private
_btn
:
cc
.
Button
=
null
;
protected
onLoad
():
void
{
protected
onLoad
():
void
{
this
.
selectBtnNode
.
on
(
'click'
,
this
.
onSelectBtnClick
,
this
);
this
.
selectBtnNode
.
on
(
'click'
,
this
.
onSelectBtnClick
,
this
);
this
.
_btn
=
this
.
selectBtnNode
.
getComponent
(
cc
.
Button
);
[
this
.
_text
,
this
.
_loading
]
=
this
.
selectBtnNode
.
children
;
this
.
_loading
.
active
=
false
;
cc
.
director
.
preloadScene
(
'main'
);
cc
.
director
.
preloadScene
(
'main'
);
if
(
!
cc
.
audioEngine
.
isMusicPlaying
())
{
if
(
!
cc
.
audioEngine
.
isMusicPlaying
())
{
...
@@ -20,12 +29,21 @@ export default class StartScreen extends cc.Component {
...
@@ -20,12 +29,21 @@ export default class StartScreen extends cc.Component {
}
}
eventTarget
.
on
(
PLAY_ROLLING_SOUND
,
this
.
playRollingSound
,
this
);
eventTarget
.
on
(
PLAY_ROLLING_SOUND
,
this
.
playRollingSound
,
this
);
}
}
private
playRollingSound
()
{
private
playRollingSound
()
{
this
.
rollingSound
.
play
();
this
.
rollingSound
.
play
();
}
}
private
onSelectBtnClick
()
{
private
onSelectBtnClick
()
{
this
.
_text
.
active
=
false
;
this
.
_loading
.
active
=
true
;
this
.
_btn
.
interactable
=
false
;
cc
.
tween
(
this
.
_loading
)
.
repeatForever
(
cc
.
tween
(
this
.
_loading
).
by
(
0.5
,
{
angle
:
90
}))
.
start
();
this
.
selectBtnNode
cc
.
director
.
loadScene
(
'main'
);
cc
.
director
.
loadScene
(
'main'
);
}
}
}
}
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