bricasse/blocks/leaf.tscn

29 lines
939 B
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://blocks/abstract_brick.tscn" type="PackedScene" id=1]
[ext_resource path="res://blocks/leaf.svg" type="Texture" id=2]
[ext_resource path="res://blocks/abstract_brick_sprite.gd" type="Script" id=3]
[sub_resource type="AtlasTexture" id=1]
resource_local_to_scene = true
flags = 4
atlas = ExtResource( 2 )
region = Rect2( 0, 0, 32, 128 )
[node name="Leaf" instance=ExtResource( 1 )]
score = 300
max_hits = 3
[node name="Sprite" type="Sprite" parent="." index="0"]
position = Vector2( 0, 64 )
texture = SubResource( 1 )
script = ExtResource( 3 )
width = 32
height = 128
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." index="1"]
polygon = PoolVector2Array( 0, 0, 16, 16, 16, 80, 0, 128, -16, 80, -16, 16 )
[connection signal="brick_hit" from="." to="Sprite" method="_on_brick_hit"]
[connection signal="color_set" from="." to="Sprite" method="_on_color_set"]