27 lines
810 B
Text
27 lines
810 B
Text
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://objects/hud/letter_block.gd" type="Script" id=1]
|
|
[ext_resource path="res://graphics/hud/letter_blocks.png" type="Texture" id=2]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 3, 3.5 )
|
|
|
|
[node name="LetterBlock" type="Node2D" groups=["enemy"]]
|
|
script = ExtResource( 1 )
|
|
blood = false
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
position = Vector2( 4, 5 )
|
|
texture = ExtResource( 2 )
|
|
hframes = 8
|
|
vframes = 5
|
|
|
|
[node name="Hitbox" type="Area2D" parent="." groups=["enemy_hitbox"]]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
|
position = Vector2( 4, 4.5 )
|
|
shape = SubResource( 1 )
|
|
|
|
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
|