bricasse/blocks/fish.tscn

29 lines
938 B
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://blocks/ghost.svg" type="Texture" id=1]
[ext_resource path="res://blocks/abstract_brick.tscn" type="PackedScene" 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( 1 )
region = Rect2( 0, 64, 64, 64 )
[node name="Fish" instance=ExtResource( 2 )]
score = 200
max_hits = 2
color = 1
[node name="Sprite" type="Sprite" parent="." index="0"]
position = Vector2( 32, 32 )
texture = SubResource( 1 )
script = ExtResource( 3 )
nb_lines = 3
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." index="1"]
polygon = PoolVector2Array( 0, 32, 64, 0, 48, 24, 64, 32, 48, 40, 64, 64 )
[connection signal="brick_hit" from="." to="Sprite" method="_on_brick_hit"]
[connection signal="color_set" from="." to="Sprite" method="_on_color_set"]