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:
@@ -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)
|
||||
|
||||
@@ -5,3 +5,6 @@
|
||||
|
||||
[node name="Player" instance=ExtResource("1_7y2qh")]
|
||||
script = ExtResource("2_us7jc")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="." index="3"]
|
||||
zoom = Vector2(2, 2)
|
||||
|
||||
Reference in New Issue
Block a user