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
235b9a5f
Commit
235b9a5f
authored
Mar 31, 2025
by
Vũ Gia Vương
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update loop rotate
parent
ec764073
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
14 deletions
+9
-14
main.fire
assets/main.fire
+8
-8
HuController.ts
assets/scripts/GamePlay/HuController.ts
+1
-4
StartScreen.ts
assets/scripts/UI/StartScreen.ts
+0
-2
No files found.
assets/main.fire
View file @
235b9a5f
...
...
@@ -1858,8 +1858,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 4
00
,
"height":
400
"width": 4
62.01
,
"height":
540.78
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -1962,8 +1962,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 4
00
,
"height":
400
"width": 4
62.01
,
"height":
540.78
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2066,8 +2066,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 4
00
,
"height":
400
"width": 4
62.01
,
"height":
540.78
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -2170,8 +2170,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 4
00
,
"height":
400
"width": 4
62.01
,
"height":
540.78
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
assets/scripts/GamePlay/HuController.ts
View file @
235b9a5f
...
...
@@ -18,7 +18,7 @@ export default class HuController extends cc.Component {
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onTouchEnd
,
this
)
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_MOVE
,
this
.
onTouchMove
,
this
)
// this.spine.setCompleteListener((trackEntry
) => this.setRotateAnim());
this
.
spine
.
setCompleteListener
((
)
=>
this
.
setRotateAnim
());
}
...
...
@@ -28,7 +28,6 @@ export default class HuController extends cc.Component {
}
private
onTouchEnd
():
void
{
// this.spine.setAnimation(1, "Rotate", false);
this
.
spine
.
timeScale
=
0
;
}
...
...
@@ -40,7 +39,6 @@ export default class HuController extends cc.Component {
return
;
}
console
.
log
(
'distance'
,
distance
)
this
.
_pointStart
=
newPoint
;
this
.
spine
.
timeScale
=
distance
>
0
?
-
0.5
:
0.5
;
}
...
...
@@ -56,7 +54,6 @@ export default class HuController extends cc.Component {
private
unPauseAnim
():
void
{
this
.
spine
.
timeScale
=
0.2
;
// this.node.scaleX *= -1;
}
private
toggleAnim
():
void
{
...
...
assets/scripts/UI/StartScreen.ts
View file @
235b9a5f
...
...
@@ -16,7 +16,6 @@ export default class StartScreen extends cc.Component {
protected
onLoad
():
void
{
this
.
selectBtnNode
.
on
(
'click'
,
this
.
onSelectBtnClick
,
this
);
this
.
contentNode
.
children
.
forEach
((
item
:
cc
.
Node
,
index
:
number
)
=>
{
item
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
()
=>
this
.
onItemNodeClick
(
item
,
index
),
this
);
...
...
@@ -34,7 +33,6 @@ export default class StartScreen extends cc.Component {
private
onSelectBtnClick
()
{
console
.
log
(
'onSelectBtnClick'
,
)
eventTarget
.
emit
(
SHOW_SELECT_POPUP
);
}
...
...
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