Updated existing shot code with constants and hard-coded variables. No

magic numbers!
This commit is contained in:
Henry 2026-04-05 12:02:13 +01:00
parent 1794abe50a
commit 0ccdc03bf8
3 changed files with 10 additions and 5 deletions

View file

@ -1,11 +1,14 @@
class_name PlayerShot
extends Resource
@export_category("Info")
@export var shot_name: String
@export var sprite: Texture2D = preload("res://graphics/shot.png")
@export_category("Shot Data")
@export var damage: int = 1
@export var speed: int = 135
@export var projectiles: int = 2
@export var rate: float = 0.1
@export var cooldown: float = 0.25
@export var sprite: Texture2D = preload("res://graphics/shot.png")
@export var spacing: float = 35