1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

更新EntityBase和Rooster类,添加动画支持并修复变量命名

This commit is contained in:
2025-08-26 10:17:38 +08:00
parent 363aeaf445
commit 61a4cabf15
4 changed files with 108 additions and 13 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ extends EntityBase
class_name Rooster
func ai():
var vector = Vector2(
var direction = Vector2(
Input.get_axis("m_left", "m_right"),
Input.get_axis("m_up", "m_down")
)
move(vector)
move(direction)