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
9
metroidvania/Scenes/Enemies/Enemy.gd
Normal file
9
metroidvania/Scenes/Enemies/Enemy.gd
Normal file
|
@ -0,0 +1,9 @@
|
|||
extends KinematicBody2D
|
||||
|
||||
export (int) var MAX_SPEED = 15
|
||||
|
||||
var motion = Vector2.ZERO
|
||||
|
||||
|
||||
func _on_Hurtbox_hit(_damage):
|
||||
queue_free()
|
Loading…
Add table
Add a link
Reference in a new issue