Initial commit
This commit is contained in:
commit
c266d22f58
85 changed files with 1649 additions and 0 deletions
18
scripts/debug/Clock.cs
Normal file
18
scripts/debug/Clock.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue