feat: cameras
This commit is contained in:
21
ennemy/camera.tscn
Normal file
21
ennemy/camera.tscn
Normal file
@ -0,0 +1,21 @@
|
||||
[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="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource("RectangleShape2D_7mycd")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
[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