a game about throwing hammers made for the github game off
Diffstat (limited to 'world/one_way_platform.tscn')
-rw-r--r--world/one_way_platform.tscn20
1 files changed, 20 insertions, 0 deletions
diff --git a/world/one_way_platform.tscn b/world/one_way_platform.tscn
new file mode 100644
index 0000000..6ca8267
--- /dev/null
+++ b/world/one_way_platform.tscn
@@ -0,0 +1,20 @@
+[gd_scene load_steps=4 format=3 uid="uid://cbrnw5j2j8wax"]
+
+[ext_resource type="Texture2D" uid="uid://b0iehyccoav1r" path="res://assets/world/one_way_platform.png" id="1_3fm0l"]
+[ext_resource type="Script" path="res://world/one_way_platform.gd" id="1_3rdiq"]
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_x8my0"]
+size = Vector2(34, 3)
+
+[node name="one_way_platform" type="StaticBody2D" node_paths=PackedStringArray("shape")]
+texture_filter = 1
+script = ExtResource("1_3rdiq")
+shape = NodePath("CollisionShape")
+
+[node name="Sprite" type="Sprite2D" parent="."]
+texture = ExtResource("1_3fm0l")
+
+[node name="CollisionShape" type="CollisionShape2D" parent="."]
+position = Vector2(0, -1.5)
+shape = SubResource("RectangleShape2D_x8my0")
+one_way_collision = true