33 lines
998 B
Plaintext
33 lines
998 B
Plaintext
|
[gd_scene load_steps=6 format=2]
|
||
|
|
||
|
[ext_resource path="res://blocks/abstract_brick.tscn" type="PackedScene" id=1]
|
||
|
[ext_resource path="res://blocks/half_brick.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, 32 )
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id=2]
|
||
|
extents = Vector2( 16, 16 )
|
||
|
|
||
|
[node name="HalfBrick" instance=ExtResource( 1 )]
|
||
|
|
||
|
[node name="Sprite" type="Sprite" parent="." index="0"]
|
||
|
position = Vector2( 16, 16 )
|
||
|
texture = SubResource( 1 )
|
||
|
script = ExtResource( 3 )
|
||
|
width = 32
|
||
|
height = 32
|
||
|
nb_lines = 4
|
||
|
nb_columns = 2
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="1"]
|
||
|
position = Vector2( 16, 16 )
|
||
|
shape = SubResource( 2 )
|
||
|
|
||
|
[connection signal="brick_hit" from="." to="Sprite" method="_on_brick_hit"]
|
||
|
[connection signal="color_set" from="." to="Sprite" method="_on_color_set"]
|