28 lines
880 B
Plaintext
28 lines
880 B
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://assets/World/Grass.png" type="Texture" id=1]
|
|
[ext_resource path="res://assets/World/Grass.gd" type="Script" id=2]
|
|
[ext_resource path="res://assets/Boxes/Hurtbox.tscn" type="PackedScene" id=3]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 6.51773, 6.19977 )
|
|
|
|
[node name="Grass" type="Node2D"]
|
|
|
|
[node name="Grass" type="Sprite" parent="."]
|
|
position = Vector2( 0.0651245, 0.152679 )
|
|
texture = ExtResource( 1 )
|
|
centered = false
|
|
offset = Vector2( -8, -8 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Hurtbox" parent="." instance=ExtResource( 3 )]
|
|
collision_layer = 8
|
|
|
|
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
|
|
position = Vector2( 7.94595, 7.94598 )
|
|
shape = SubResource( 1 )
|
|
[connection signal="area_entered" from="Hurtbox" to="Grass" method="_on_Hurtbox_area_entered"]
|
|
|
|
[editable path="Hurtbox"]
|