Decomposed utility
This commit is contained in:
parent
3a5154f051
commit
bdf02db5c8
8 changed files with 29 additions and 28 deletions
|
|
@ -1,27 +0,0 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
namespace Newlon;
|
||||
|
||||
//
|
||||
// Class for general-used constants and utility tools
|
||||
//
|
||||
|
||||
public class Utility
|
||||
{
|
||||
|
||||
public const int EffectSlotCount = 4;
|
||||
public const int LineCount = 5;
|
||||
public const int TileWidth = 50;
|
||||
public const int TileHeight = 60;
|
||||
public const int LayersCount = 3;
|
||||
public static Vector2I LeftFieldBoundary = new(305, 76);
|
||||
public static Vector2I RightFieldBoundary = new(755, 376);
|
||||
public static readonly Vector2 Tile = new(TileWidth, TileHeight);
|
||||
|
||||
public static double SFX = 1.0f;
|
||||
public static double Music = 1.0f;
|
||||
public static bool Splash = false;
|
||||
public static int MaxSeedpackets = 9;
|
||||
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
uid://ccaap8m63b62t
|
||||
10
scripts/static-data/FieldParams.cs
Normal file
10
scripts/static-data/FieldParams.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using Godot;
|
||||
public class FieldParams
|
||||
{
|
||||
public const int TileWidth = 50;
|
||||
public const int TileHeight = 60;
|
||||
public const int LayersCount = 3;
|
||||
public static Vector2I LeftFieldBoundary = new(305, 76);
|
||||
public static Vector2I RightFieldBoundary = new(755, 376);
|
||||
public static readonly Vector2 Tile = new(TileWidth, TileHeight);
|
||||
}
|
||||
1
scripts/static-data/FieldParams.cs.uid
Normal file
1
scripts/static-data/FieldParams.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bxfvp7yvvwksd
|
||||
7
scripts/static-data/PlayerInfo.cs
Normal file
7
scripts/static-data/PlayerInfo.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class PlayerInfo : Node
|
||||
{
|
||||
public static int MaxSeedpackets = 9;
|
||||
}
|
||||
1
scripts/static-data/PlayerInfo.cs.uid
Normal file
1
scripts/static-data/PlayerInfo.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dpbaw8osly0ir
|
||||
9
scripts/static-data/Settings.cs
Normal file
9
scripts/static-data/Settings.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class Settings : Node
|
||||
{
|
||||
public static double SFX = 1.0f;
|
||||
public static double Music = 1.0f;
|
||||
public static bool Splash = false;
|
||||
}
|
||||
1
scripts/static-data/Settings.cs.uid
Normal file
1
scripts/static-data/Settings.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://ciglp3tvamysf
|
||||
Loading…
Add table
Add a link
Reference in a new issue