diff --git a/.idea/libraries/GdSdk_Master.xml b/.idea/libraries/GdSdk_Master.xml
index fc9835a..ec9ecde 100644
--- a/.idea/libraries/GdSdk_Master.xml
+++ b/.idea/libraries/GdSdk_Master.xml
@@ -1,10 +1,10 @@
-
+
-
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 9a9cb60..3ec9470 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,11 @@
-
+
+
+
+
+
@@ -13,7 +17,7 @@
@@ -35,23 +39,21 @@
- {
+ "keyToString": {
+ "GdScript Start and Debug.Player GDScript.executor": "Debug",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "RunOnceActivity.git.unshallow": "true",
+ "gdscript.promo.shown": "true",
+ "git-widget-placeholder": "master",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "vue.rearranger.settings.migration": "true"
}
-}]]>
+}
@@ -64,17 +66,13 @@
-
+
-
-
-
-
@@ -86,8 +84,7 @@
1733914913603
-
-
+
@@ -96,24 +93,7 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/scripts/enemy.gd b/scripts/enemy.gd
index 8f35533..c090b74 100644
--- a/scripts/enemy.gd
+++ b/scripts/enemy.gd
@@ -18,7 +18,7 @@ func _physics_process(_delta: float) -> void:
state = States.idle
return
- var distance = global_position.distance_to(player.global_position)
+ var distance: float = global_position.distance_to(player.global_position)
if distance > chasing_range:
state = States.idle
elif distance <= chasing_range and distance >= attack_range:
@@ -50,9 +50,9 @@ func _on_state_changed(_old_state: States, new_state: States) -> void:
func _on_velocity_computed(safe_velocity: Vector3) -> void:
velocity = safe_velocity
- var vy = velocity.y
+ var vy: float = velocity.y
velocity.y = 0
- var vl = velocity * model.transform.basis
+ var vl: Vector3 = velocity * model.transform.basis
anim_tree.set("parameters/IWR/blend_position", Vector2(vl.x, -vl.z) / speed)
velocity.y = vy
move_and_slide()