Refactored weapon and shoot component use and resources.

This commit is contained in:
Henry Faber 2026-06-09 13:57:40 +01:00
parent 79122a074e
commit bdbc3b015f
29 changed files with 239 additions and 435 deletions

View file

@ -0,0 +1,15 @@
extends Area2D
@onready var bullet: PackedScene = load("res://scenes/weapon_stock.tscn")
@onready var shot_data: = load("res://resources/player_weapons/weapon_shot_stock.tres")
func _process(delta):
#Calculation position along Y axis
position.y -= shot_data.speed * delta # Original Speed
#position.y -= 330 * delta # non-shot_data testing
func _on_visible_on_screen_notifier_2d_screen_exited() -> void:
queue_free()