a game about throwing hammers made for the github game off
Diffstat (limited to 'world/door/door.tscn')
| -rw-r--r-- | world/door/door.tscn | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/world/door/door.tscn b/world/door/door.tscn new file mode 100644 index 0000000..b33e2c1 --- /dev/null +++ b/world/door/door.tscn @@ -0,0 +1,21 @@ +[gd_scene load_steps=4 format=3 uid="uid://b6frlgjdtxsnb"] + +[ext_resource type="Script" path="res://world/door/door.gd" id="1_t5c8c"] +[ext_resource type="Shape2D" uid="uid://cxidkq2kfr583" path="res://world/door/door_shape.tres" id="4_ty3l8"] +[ext_resource type="Texture2D" uid="uid://ca243eorhvtp2" path="res://assets/world/door.png" id="4_weg0g"] + +[node name="door" type="Area2D"] +texture_filter = 1 +collision_layer = 0 +collision_mask = 2 +script = ExtResource("1_t5c8c") + +[node name="CollisionShape" type="CollisionShape2D" parent="."] +position = Vector2(16, 0) +shape = ExtResource("4_ty3l8") + +[node name="Sprite" type="Sprite2D" parent="."] +position = Vector2(10, 0) +texture = ExtResource("4_weg0g") + +[connection signal="body_entered" from="." to="." method="_on_body_entered"] |