mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 08:55:35 +00:00
Mapping
This commit is contained in:
parent
e6dd2a2348
commit
19a0802ef2
6 changed files with 144 additions and 17 deletions
|
|
@ -11,7 +11,7 @@ script = ExtResource("5_sg6hg")
|
|||
RoomName = &"LargeMap"
|
||||
Type = 1
|
||||
ScenePath = &"uid://d06oxglp06qyt"
|
||||
Size = Vector2i(3, 1)
|
||||
Size = Vector2i(3, 2)
|
||||
StartShrouded = true
|
||||
DoorGridPositions = Array[Vector2i]([Vector2i(0, -1), Vector2i(0, 1), Vector2i(1, 0), Vector2i(-1, 0)])
|
||||
SpawnableEnemies = Array[Object]([ExtResource("1_bium7"), ExtResource("2_rya56"), ExtResource("3_1g85j"), ExtResource("4_uel5e")])
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
[ext_resource type="PackedScene" uid="uid://byms2dhliyux0" path="res://Scenes/Actors/teleporter.tscn" id="43_to7mi"]
|
||||
[ext_resource type="Resource" uid="uid://bgcgeg187vg1h" path="res://Resources/Items/IcicleRepeater.tres" id="45_f7mru"]
|
||||
[ext_resource type="Resource" uid="uid://dau0s8ob7qnpc" path="res://Resources/Items/IceShotgun.tres" id="46_3kwn2"]
|
||||
[ext_resource type="Resource" uid="uid://do1ly1s5etbt5" path="res://Resources/RogueliteMaps/Corridor_1x3.tres" id="46_mvnxq"]
|
||||
[ext_resource type="Resource" uid="uid://do1ly1s5etbt5" path="res://Resources/RogueliteMaps/Corridor_2x3.tres" id="46_mvnxq"]
|
||||
[ext_resource type="Resource" uid="uid://brsukcuyoq364" path="res://Resources/Items/NuclearGunPickup.tres" id="47_to7mi"]
|
||||
[ext_resource type="Resource" uid="uid://ccmuffmnevrt4" path="res://Resources/Items/Yin_Yang_Gun_Pickup.tres" id="48_w335g"]
|
||||
[ext_resource type="Resource" uid="uid://bhllj7r3oxipf" path="res://Resources/Items/IceShotgun_T2.tres" id="56_hvkru"]
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -13,7 +13,7 @@ public partial class LevelTeleporter : Teleporter
|
|||
[Export] public string LevelPath { get; set; }
|
||||
[Export] public MapResource Map { get; private set; }
|
||||
|
||||
[Export] public bool SaveInventory { get; private set; }
|
||||
[Export] public bool SaveInventory { get; set; }
|
||||
|
||||
protected override async Task Teleport(IStateMachine<PlayerState, CharacterBody2D> player)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ public partial class TeleporterMarker : FeatureMarker
|
|||
if (Type is TeleporterMarkerType.NextLevel && _spawnedTeleporter is LevelTeleporter levelTeleporter)
|
||||
{
|
||||
levelTeleporter.LevelPath = mapTheme.LevelTeleporterDestinationPath;
|
||||
levelTeleporter.SaveInventory = true;
|
||||
}
|
||||
|
||||
return this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue