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.
25 lines
972 B
Text
25 lines
972 B
Text
[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")]
|