Improves lightning projectile behavior
Refactors the lightning projectile to handle collisions more effectively. It now stops upon hitting an enemy or object, triggers an explosion, and spawns child projectiles from the collision point. The lightning bolt's collision shape is dynamically updated to match the remaining distance to the target or the collision point. Also adds more test enemies to the map for testing purposes.
This commit is contained in:
parent
d0c2a7b3c8
commit
1a959fbc0c
7 changed files with 232 additions and 41 deletions
12
map/Map.tscn
12
map/Map.tscn
|
|
@ -22,3 +22,15 @@ position = Vector2(20, 20)
|
|||
|
||||
[node name="TestEnemy" parent="." instance=ExtResource("4_raxr4")]
|
||||
position = Vector2(87, 72)
|
||||
|
||||
[node name="TestEnemy2" parent="." instance=ExtResource("4_raxr4")]
|
||||
position = Vector2(171, 38)
|
||||
|
||||
[node name="TestEnemy3" parent="." instance=ExtResource("4_raxr4")]
|
||||
position = Vector2(132, 150)
|
||||
|
||||
[node name="TestEnemy4" parent="." instance=ExtResource("4_raxr4")]
|
||||
position = Vector2(199, 107)
|
||||
|
||||
[node name="TestEnemy5" parent="." instance=ExtResource("4_raxr4")]
|
||||
position = Vector2(272, 64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue