Updated existing shot code with constants and hard-coded variables. No
magic numbers!
This commit is contained in:
parent
1794abe50a
commit
0ccdc03bf8
3 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue