Updated resources and working Player scene to share the same variables

as the new component setup.
This commit is contained in:
Henry 2026-04-06 01:31:50 +01:00
parent 9b3841775c
commit 5d2efe9983
5 changed files with 16 additions and 19 deletions

View file

@ -87,7 +87,7 @@ func _on_weapon_cooldown_timeout() -> void:
func shoot():
var projectiles: int = 4
var projectiles: int = 3
const PROJECTILE_SPACING: float = 10
const MUZZLE_HEIGHT: int = -23
for b in projectiles:
@ -99,7 +99,7 @@ func shoot():
# Get weapon speed and spacing for equidistant calculations
weapon_rate = bullet.shot_data.rate
weapon_spacing = bullet.shot_data.spacing
weapon_spacing = bullet.shot_data.projectile_spacing
bullet_speed = abs(bullet.shot_data.speed)
# Print which weapon is firing

View file

@ -11,4 +11,5 @@ extends Resource
@export var projectiles: int = 2
@export var rate: float = 0.1
@export var cooldown: float = 0.25
@export var spacing: float = 35
@export var projectile_spacing: float = 35
@export var projectile_origin: int = -23