added Graphics and sound Effects and more overhauls
This commit is contained in:
parent
c887a2168c
commit
b9d4288900
214 changed files with 3378 additions and 198 deletions
|
|
@ -3,13 +3,17 @@ class_name Weapon extends Node2D
|
|||
@onready var bulletPoint = $BulletPoint
|
||||
@onready var cooldownTimer = $cooldownTimer
|
||||
|
||||
@onready var shoot = $shoot
|
||||
|
||||
@export var damage: int = 1
|
||||
@export var cooldown: float = 0.1
|
||||
@export var penetration: int = 1
|
||||
@export var spread: float = 0.1
|
||||
@export var range: float = 8.0
|
||||
@export var bulletSpeed: float = 10
|
||||
|
||||
func attack():
|
||||
shoot.play()
|
||||
randomize()
|
||||
if cooldownTimer.is_stopped():
|
||||
cooldownTimer.start(cooldown)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue