Adds lightning projectile
Implements a lightning projectile with visual effects. The lightning is created using a series of bolt components that dynamically adjust their shape. Also refactors the projectile system to use a base class. Removes unused modifiers from player script.
This commit is contained in:
parent
ff62d67f54
commit
d0c2a7b3c8
12 changed files with 239 additions and 103 deletions
|
|
@ -19,7 +19,7 @@ func process(_delta):
|
|||
var normalized_direction = direction.normalized()
|
||||
|
||||
if Input.is_action_pressed("fire"):
|
||||
player.weapon.fire(normalized_direction)
|
||||
player.weapon.fire(normalized_direction, mouse_position)
|
||||
# Update animation
|
||||
#update_animation()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue