Added shrouds to rooms

This commit is contained in:
Marco 2025-04-28 09:50:55 +02:00
commit f460103239
12 changed files with 104 additions and 32 deletions

View file

@ -14,6 +14,7 @@ public partial class RogueliteRoomResource : Resource
[Export] public StringName ScenePath { get; set; }
[Export] public Vector2I Size { get; set; } = new(1, 1);
[Export] public bool StartShrouded { get; set; } = true;
[Export] public Array<Vector2I> DoorGridPositions { get; set; } = [];
[Export] public Array<EnemyResource> SpawnableEnemies { get; set; }

View file

@ -1,4 +1,5 @@
using Cirno.Scripts.Resources.Loot;
using Cirno.Scripts.Activables;
using Cirno.Scripts.Resources.Loot;
using Cirno.Scripts.Resources.Roguelite;
using Godot;
using Godot.Collections;
@ -8,6 +9,10 @@ namespace Cirno.Scripts.Resources;
[GlobalClass]
public partial class RogueliteMapTheme : Resource
{
[ExportCategory("Dimensions")]
[Export] public Vector2I TileSize { get; set; } = new Vector2I(16, 16);
[Export] public Vector2I RoomSizeInTiles { get; set; } = new Vector2I(20, 10);
[ExportGroup("Prefabs")]
[Export] public PackedScene HorizontalDoorPrefab { get; set; }
[Export] public PackedScene HorizontalWallPrefab { get; set; }
@ -18,8 +23,10 @@ public partial class RogueliteMapTheme : Resource
[Export] public PackedScene ChestPrefab { get; set; }
[Export] public PackedScene VendingMachinePrefab { get; set; }
[Export] public Array<PackedScene> KeyCardsPrefabs { get; set; }
[Export] public PackedScene ShroudPrefab { get; set; }
[Export] public LootItem PointItemResource { get; set; }
[ExportGroup("Chances")]
[Export] public double ChestChance { get; set; }
[Export] public float EnemyDropChance { get; set; }