mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 08:45:33 +00:00
Added path to spawner
This commit is contained in:
parent
161580fa7b
commit
cee0a8fe8f
2 changed files with 4 additions and 1 deletions
|
|
@ -585,10 +585,11 @@ script = ExtResource("35_im0gw")
|
|||
Enemy = ExtResource("36_6jwww")
|
||||
AutoSpawn = true
|
||||
|
||||
[node name="RogueliteEnemySpawner17" type="Marker2D" parent="Tilemaps/Actors"]
|
||||
[node name="RogueliteEnemySpawner17" type="Marker2D" parent="Tilemaps/Actors" node_paths=PackedStringArray("Path")]
|
||||
position = Vector2(100, 537)
|
||||
script = ExtResource("35_im0gw")
|
||||
Enemy = ExtResource("36_6jwww")
|
||||
Path = NodePath("")
|
||||
|
||||
[node name="RogueliteEnemySpawner14" type="Marker2D" parent="Tilemaps/Actors"]
|
||||
position = Vector2(92.6661, 332.966)
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ public partial class RogueliteEnemySpawner : Marker2D, IActivable
|
|||
[Export] public int Wave { get; private set; } = 0;
|
||||
|
||||
public bool Spawned { get; private set; } = false;
|
||||
|
||||
[Export] public Path2D Path { get; private set; }
|
||||
|
||||
[ExportToolButton("Update Icon")] public Callable RedrawButton => Callable.From(Redraw);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue