Fixed names for a better traceability of code errors with orignal code lesson. End of lesson 25. Player is moving on the map viewport!

This commit is contained in:
2025-04-07 22:58:52 -03:00
parent 68a1e19ebe
commit 10fc584d1e
24 changed files with 162 additions and 70 deletions

View File

@@ -122,8 +122,11 @@ animations = [{
"speed": 5.0
}]
[node name="Mob" type="Node2D"]
[node name="Mob" type="Node2D" node_paths=PackedStringArray("animator", "collisionRay_1", "collisionRay_2")]
script = ExtResource("1_mu6cs")
animator = NodePath("AnimatedSprite2D")
collisionRay_1 = NodePath("CollisionRayCast_1")
collisionRay_2 = NodePath("CollisionRayCast_2")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(8, 8)