Separated shot positioning math to helper utility and refactored shoot
component - introduced shot origin issue.
This commit is contained in:
parent
6c5a0a0bae
commit
99a5d9838d
17 changed files with 147 additions and 98 deletions
|
|
@ -7,10 +7,10 @@ extends Resource
|
|||
@export var damage: int = 1
|
||||
@export var speed: int = 135
|
||||
@export var projectiles: int = 2
|
||||
# Vertical spacing between projectiles
|
||||
@export var spacing: float = 35
|
||||
# Origin offset from center of player
|
||||
@export var origin: int = -23
|
||||
# Vertical spacing between projectiles when firing continuously
|
||||
@export var projectile_vertical_spacing: float = 35
|
||||
# Spawn offset from center of player (x is usually 0, y controls vertical fire position)
|
||||
@export var origin: Vector2 = Vector2(0, -25)
|
||||
|
||||
@export_category("Spread")
|
||||
# Horizontal distance between projectiles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue