Commit 2d0e1210 authored by Nathan Lovato's avatar Nathan Lovato
Browse files

Make Gnu die upon colliding with the fence

parent 3c4019ea
Pipeline #5038 passed with stage
in 4 minutes and 22 seconds
......@@ -54,6 +54,9 @@ position = Vector2( 0, 950 )
position = Vector2( 190, 960 )
z_index = 1
[node name="Area2D" type="Area2D" parent="."]
position = Vector2( 0, 1930 )
[node name="FenceSpawner" type="Node2D" parent="."]
position = Vector2( -180, 1640 )
z_index = 100
......
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://assets/fence.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 540, 20 )
[node name="Fence" type="Sprite"]
texture = ExtResource( 1 )
offset = Vector2( 533.5, -60 )
......@@ -9,4 +12,12 @@ offset = Vector2( 533.5, -60 )
[node name="VisibilityEnabler2D" type="VisibilityNotifier2D" parent="."]
position = Vector2( 1080, 0 )
[node name="Area2D" type="StaticBody2D" parent="."]
collision_layer = 2
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( 540, -110 )
shape = SubResource( 1 )
[connection signal="screen_exited" from="VisibilityEnabler2D" to="." method="queue_free"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment