Attempting to refactor the previously working self contained equidistent

code in the player.gd.
This commit is contained in:
Henry 2026-04-06 12:46:36 +01:00
parent 5d2efe9983
commit d419635d7f
15 changed files with 153 additions and 46 deletions

View file

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