Files
GMTK25/camera/camera.tscn
Minimata 712d2a41ea
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 7s
Create tag and build when new code gets to main / Export (push) Successful in 2m19s
feat: parallax and more environment
2025-08-02 11:50:59 +02:00

25 lines
826 B
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://cwxv8xl0hi31i"]
[ext_resource type="Script" uid="uid://cn0crfbdlcoot" path="res://camera/camera.gd" id="1_f5lvx"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7mycd"]
size = Vector2(630, 340)
[node name="CameraHandler" type="Node2D"]
script = ExtResource("1_f5lvx")
[node name="Area2D" type="Area2D" parent="."]
visible = false
collision_layer = 0
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
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"]