Player gun, bullet and its collisiions. Refactor.
This commit is contained in:
parent
0dd3f24030
commit
ffb7c8bf99
28 changed files with 562 additions and 131 deletions
11
metroidvania/Scenes/Objects/Hitbox.tscn
Normal file
11
metroidvania/Scenes/Objects/Hitbox.tscn
Normal file
|
@ -0,0 +1,11 @@
|
|||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scenes/Objects/Hitbox.gd" type="Script" id=1]
|
||||
|
||||
[node name="Hitbox" type="Area2D"]
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="Collider" type="CollisionShape2D" parent="."]
|
||||
[connection signal="area_entered" from="." to="." method="_on_Hitbox_area_entered"]
|
Loading…
Add table
Add a link
Reference in a new issue