Initial commit

This commit is contained in:
Фёдор Веселов 2024-09-08 00:45:50 +05:00
commit c266d22f58
85 changed files with 1649 additions and 0 deletions

13
scripts/debug/Cheats.cs Normal file
View file

@ -0,0 +1,13 @@
using Godot;
using System;
public partial class Cheats : Node
{
public override void _Input(InputEvent @event)
{
if (@event.IsActionPressed("cheat_add_sun"))
{
LevelController.Instance.LevelData.AddSun(50);
}
}
}

18
scripts/debug/Clock.cs Normal file
View file

@ -0,0 +1,18 @@
using Godot;
using System;
//
// Debug tool to check time since clock loaded
//
public partial class Clock : Label
{
private ulong _time = 0;
public override void _Process(double delta)
{
_time += (ulong)(delta*1000);
ulong seconds = _time / 1000 % 60;
ulong minutes = seconds / 60 % 60;
Text = minutes.ToString()+":"+seconds.ToString();
}
}