[gd_scene load_steps=7 format=3 uid="uid://b6piduuvusiix"] [ext_resource type="Texture2D" uid="uid://chrld8oybp4me" path="res://assets/bg-1-1.png" id="1_4h0ce"] [ext_resource type="Script" path="res://scripts/destroyblock.gd" id="1_a8383"] [sub_resource type="AtlasTexture" id="AtlasTexture_nbg0j"] atlas = ExtResource("1_4h0ce") region = Rect2(320, 144, 16, 16) [sub_resource type="SpriteFrames" id="SpriteFrames_r70hc"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_nbg0j") }], "loop": true, "name": &"default", "speed": 5.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_i07jg"] size = Vector2(16, 16) [sub_resource type="RectangleShape2D" id="RectangleShape2D_r8vfl"] size = Vector2(8, 1) [node name="destroyblock" type="RigidBody2D"] gravity_scale = 0.0 script = ExtResource("1_a8383") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] position = Vector2(8, -8) sprite_frames = SubResource("SpriteFrames_r70hc") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(8, -8) shape = SubResource("RectangleShape2D_i07jg") [node name="activate" type="Area2D" parent="."] collision_mask = 2 [node name="CollisionShape2D" type="CollisionShape2D" parent="activate"] position = Vector2(8, 0.5) shape = SubResource("RectangleShape2D_r8vfl") [connection signal="body_entered" from="activate" to="." method="_on_activate_body_entered"]