rework bullet speed a wee bit
This commit is contained in:
parent
ddf3590c96
commit
08763960ca
5 changed files with 16 additions and 11 deletions
|
|
@ -38,6 +38,9 @@ static var _hitbox_shapes: Dictionary[Vector2i, RectangleShape2D] = {}
|
|||
_hitbox_shapes[hitbox_size] = new_shape
|
||||
_hitbox.shape = _hitbox_shapes[hitbox_size]
|
||||
|
||||
## The speed at which the bullet should travel.
|
||||
@export var speed: float
|
||||
|
||||
## The direction that the bullet is travelling.
|
||||
@export_custom(0, "direction") var direction: Vector2 = Vector2.RIGHT
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue