A game created for the Godot Wild Jam #21
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
911B

  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://Data/Scripts/Doorway.gd" type="Script" id=2]
  3. [ext_resource path="res://Data/Objects/HalfDoor.tscn" type="PackedScene" id=3]
  4. [sub_resource type="RectangleShape2D" id=1]
  5. extents = Vector2( 40, 40 )
  6. [node name="Doorway" type="Node2D"]
  7. position = Vector2( 211.518, -137.077 )
  8. script = ExtResource( 2 )
  9. [node name="LeftDoor" parent="." instance=ExtResource( 3 )]
  10. position = Vector2( -18.0513, -0.440125 )
  11. [node name="RightDoor" parent="." instance=ExtResource( 3 )]
  12. position = Vector2( 18.0682, -0.440125 )
  13. scale = Vector2( -1, 1 )
  14. [node name="Area2D" type="Area2D" parent="."]
  15. [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
  16. shape = SubResource( 1 )
  17. [connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]
  18. [connection signal="body_exited" from="Area2D" to="." method="_on_Area2D_body_exited"]