mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 00:35:53 +00:00
Floor system
This commit is contained in:
parent
8c17738371
commit
c1afa466d3
14 changed files with 199 additions and 86 deletions
|
|
@ -4,6 +4,7 @@ using System.Linq;
|
|||
using System.Threading.Tasks;
|
||||
using Cirno.Scripts;
|
||||
using Cirno.Scripts.Components.FSM;
|
||||
using Cirno.Scripts.Enums;
|
||||
using Cirno.Scripts.Misc;
|
||||
using Cirno.Scripts.Resources;
|
||||
using Godot.Collections;
|
||||
|
|
@ -74,7 +75,19 @@ public partial class GameManager : Node2D
|
|||
{
|
||||
Instance = this;
|
||||
RenderingServer.SetDefaultClearColor(Colors.Black);
|
||||
GlobalState.Session.LevelNumber = MapResource.LevelId;
|
||||
if (GlobalState.Instance.SessionSettings.GameMode is GameMode.Roguelite)
|
||||
{
|
||||
if (GlobalState.Instance.SessionSettings.LevelNumber < 0)
|
||||
{
|
||||
// TODO: Change based on which level we're going to
|
||||
GlobalState.Instance.SessionSettings.LevelNumber = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
GlobalState.Session.LevelNumber = MapResource.LevelId;
|
||||
}
|
||||
|
||||
|
||||
GlobalState.Instance.ResizeCursor();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue