Equidistent code working in component form! Also cleaned up spacing for
increased projectiles in stock weapon by rounding remainders from division.
This commit is contained in:
parent
d419635d7f
commit
db57a0234e
17 changed files with 58 additions and 48 deletions
|
|
@ -1,12 +0,0 @@
|
|||
extends Area2D
|
||||
|
||||
@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
|
||||
|
||||
func _on_visible_on_screen_notifier_2d_screen_exited() -> void:
|
||||
queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue