bricasse/blocks/star.tscn

27 lines
897 B
Plaintext

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