Set up a revised player scene with a component based apparoach; shooting
functionality incomplete.
This commit is contained in:
parent
8d89271074
commit
9b3841775c
13 changed files with 331 additions and 0 deletions
21
scripts/weapon_component.gd
Normal file
21
scripts/weapon_component.gd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
class_name WeaponComponent extends Node
|
||||
|
||||
@export var weapon_current : PackedScene
|
||||
#@export var projectile_origin: int = -23
|
||||
var bullet_data: PlayerShot = load("res://resources/player_weapons/shot_stock_static.tres")
|
||||
|
||||
#@export_category("Temp Bullet Data")
|
||||
#@export var projectiles: int = 3
|
||||
#@export var projectile_spacing: float = 10
|
||||
|
||||
#var damage: int = 0
|
||||
#var speed: int = 135
|
||||
#var projectiles: int = 2
|
||||
#var rate: float = 0.1
|
||||
#var cooldown: float = 0.25
|
||||
#var projectile_spacing: float = 10
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue