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
25
assets/projectiles/projectile_lightning.tscn
Normal file
25
assets/projectiles/projectile_lightning.tscn
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://cwn5eoynt6j48"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cb7fwabidqyj8" path="res://player/weapons/projectile_lightning.gd" id="1_2ex40"]
|
||||
[ext_resource type="PackedScene" uid="uid://cafaf3en63bp6" path="res://assets/projectiles/components/bolt.tscn" id="2_gc60m"]
|
||||
|
||||
[node name="ProjectileLightning" type="Area2D"]
|
||||
script = ExtResource("1_2ex40")
|
||||
|
||||
[node name="Bolt" parent="." instance=ExtResource("2_gc60m")]
|
||||
modulate = Color(0.161899, 0.42984, 0.777414, 1)
|
||||
rotation = 0.872665
|
||||
|
||||
[node name="Bolt2" parent="." instance=ExtResource("2_gc60m")]
|
||||
modulate = Color(0.443066, 0.672326, 1, 1)
|
||||
rotation = 0.872665
|
||||
|
||||
[node name="Bolt3" parent="." instance=ExtResource("2_gc60m")]
|
||||
modulate = Color(0.205858, 0.510414, 0.999999, 1)
|
||||
rotation = 0.349066
|
||||
|
||||
[node name="Bolt4" parent="." instance=ExtResource("2_gc60m")]
|
||||
|
||||
[node name="Bolt5" parent="." instance=ExtResource("2_gc60m")]
|
||||
|
||||
[node name="Bolt6" parent="." instance=ExtResource("2_gc60m")]
|
||||
Loading…
Add table
Add a link
Reference in a new issue