feat: parallax and more environment
This commit is contained in:
@ -9,6 +9,7 @@ size = Vector2(630, 340)
|
||||
script = ExtResource("1_f5lvx")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
visible = false
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
@ -16,6 +17,8 @@ collision_mask = 2
|
||||
shape = SubResource("RectangleShape2D_7mycd")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
position_smoothing_enabled = true
|
||||
position_smoothing_speed = 30.0
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"]
|
||||
[connection signal="body_exited" from="Area2D" to="." method="_on_body_exited"]
|
||||
|
Reference in New Issue
Block a user