feat: 1. 添加武器位置,1-6

2. 添加武器容器
3. 添加敌人的Hurtbox
This commit is contained in:
luke358
2026-05-19 16:18:02 +08:00
parent 7c7b2e9420
commit 707dadd9ed
9 changed files with 167 additions and 8 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func get_move_direction() -> Vector2:
if not is_instance_valid(Global.player):
return Vector2.ZERO
var direction := global_position.direction_to(Global.player.position)
var direction := global_position.direction_to(Global.player.global_position)
for area: Node2D in vision_area.get_overlapping_areas():
if area != self and area.is_inside_tree():