randomgeon/map/Map.tscn
Dan Baker 1a959fbc0c 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.
2025-05-06 09:30:44 +01:00

36 lines
1.4 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://cfkusqucsap26"]
[ext_resource type="Script" uid="uid://begwu0icmrxyw" path="res://map/map.gd" id="1_l804v"]
[ext_resource type="TileSet" uid="uid://c66l102pgntht" path="res://assets/sprites/tilesets/forest.tres" id="2_3nv2f"]
[ext_resource type="PackedScene" uid="uid://cait7d0k1kmsq" path="res://enemies/test_enemy.tscn" id="4_raxr4"]
[ext_resource type="PackedScene" uid="uid://bo5aw2cad3akl" path="res://player/player.tscn" id="5_3nv2f"]
[node name="Map" type="Node2D"]
script = ExtResource("1_l804v")
[node name="Ground" type="TileMapLayer" parent="."]
tile_set = ExtResource("2_3nv2f")
[node name="Water" type="TileMapLayer" parent="."]
tile_set = ExtResource("2_3nv2f")
[node name="Scatter" type="TileMapLayer" parent="."]
tile_set = ExtResource("2_3nv2f")
[node name="Player" parent="." instance=ExtResource("5_3nv2f")]
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)