Updated the bullet spawning position to beging from the sprite height

modified by the weapon's origin variable.
This commit is contained in:
Henry Faber 2026-06-28 08:05:30 +01:00
parent 64e685a3c1
commit 9554af183c
7 changed files with 38 additions and 27 deletions

View file

@ -8,7 +8,7 @@ func _ready() -> void:
EventBus.weapon_changed.connect(_on_weapon_changed)
func _on_weapon_changed(weapon_name: String, player_node: Node2D, player_sprite_size: Vector2, origin_offset: Vector2) -> void:
func _on_weapon_changed(weapon_name: String, player_node: Node2D, player_sprite_size: Vector2, origin_offset: float) -> void:
if notification_scene == null:
return