Boss encounter
This commit is contained in:
parent
bdd9f2ea2c
commit
2b90d087c4
6 changed files with 111 additions and 4 deletions
22
metroidvania/Scenes/Objects/Spikes.tscn
Normal file
22
metroidvania/Scenes/Objects/Spikes.tscn
Normal file
|
@ -0,0 +1,22 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Assets/Enemies/Spikes.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Scenes/Objects/Hitbox.tscn" type="PackedScene" id=2]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 8, 8 )
|
||||
|
||||
[node name="Spikes" type="Node2D"]
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
centered = false
|
||||
|
||||
[node name="Hitbox" parent="." instance=ExtResource( 2 )]
|
||||
collision_mask = 4
|
||||
|
||||
[node name="Collider" parent="Hitbox" index="0"]
|
||||
position = Vector2( 8, 8 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[editable path="Hitbox"]
|
Loading…
Add table
Add a link
Reference in a new issue