facsimile-wing/scripts/stock_weapon.gd
Henry 172830729f Modified the resource and defaults for the projectile property ;made a
backup of the original stock weapon scene just in case things went bad.
2026-04-04 15:14:13 +01:00

12 lines
283 B
GDScript

extends Area2D
@onready var bullet = load("res://scenes/stock_weapon.tscn")
@export var shot_data: PlayerShot
func _process(delta):
position.y += shot_data.speed * delta # This works normally
func _on_visible_on_screen_notifier_2d_screen_exited() -> void:
queue_free()