Files
JumpRopeOldTech/horizontal_moving_block.tscn
2026-10-18 18:43:49 -05:00

40 lines
1.4 KiB
Plaintext

[gd_scene format=3 uid="uid://div6quttr84u1"]
[ext_resource type="Script" uid="uid://yaqgvctkobnq" path="res://horizontal_moving_block.gd" id="1_3uo2v"]
[ext_resource type="Texture2D" uid="uid://blbaaqyrt8dtk" path="res://art/block/block.png" id="1_m1vtb"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f3sb7"]
size = Vector2(32, 13)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3uo2v"]
size = Vector2(32, 4.0000687)
[node name="HorizontalMovingBlock" type="RigidBody2D" unique_id=1409784601]
gravity_scale = 0.0
freeze = true
script = ExtResource("1_3uo2v")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1866755047]
position = Vector2(0, -1.5)
shape = SubResource("RectangleShape2D_f3sb7")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1680278216]
texture_filter = 1
position = Vector2(-8, -2)
texture = ExtResource("1_m1vtb")
[node name="Sprite2D2" type="Sprite2D" parent="." unique_id=549053101]
texture_filter = 1
position = Vector2(8, -2)
texture = ExtResource("1_m1vtb")
[node name="Area2D" type="Area2D" parent="." unique_id=1910272404]
rotation = -6.834404e-05
[node name="ShapeCast2D" type="CollisionShape2D" parent="Area2D" unique_id=934904308]
position = Vector2(0.000615094, -8.999966)
shape = SubResource("RectangleShape2D_3uo2v")
[connection signal="body_entered" from="Area2D" to="." method="on_enter"]
[connection signal="body_exited" from="Area2D" to="." method="on_leave"]