mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://ControlElements/Killzone.gd" type="Script" id=1]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 195, 9 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=2]
|
|
extents = Vector2( 10, 303 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=3]
|
|
extents = Vector2( 192, 10 )
|
|
|
|
[node name="Killzone" type="KinematicBody2D"]
|
|
collision_layer = 0
|
|
collision_mask = 0
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Killzone" type="Area2D" parent="."]
|
|
position = Vector2( 192, 0 )
|
|
|
|
[node name="Bottom" type="CollisionShape2D" parent="Killzone"]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="Left" type="CollisionShape2D" parent="Killzone"]
|
|
position = Vector2( -202, 0 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Right" type="CollisionShape2D" parent="Killzone"]
|
|
position = Vector2( 202, 0 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="ZoneDetection" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="ZoneDetection"]
|
|
position = Vector2( 192, 0 )
|
|
shape = SubResource( 3 )
|
|
|
|
[connection signal="body_entered" from="Killzone" to="." method="_on_Killzone_body_entered"]
|
|
[connection signal="area_entered" from="ZoneDetection" to="." method="_on_ZoneDetection_area_entered"]
|