Pong/Scripts/Constants.cs

21 lines
540 B
C#
Raw Normal View History

namespace Pong.Scripts;
public static class Constants
{
/// <summary>
/// a constant representing 1 Meter in pixels.
/// </summary>
public const float Meter = 10;
/// <summary>
/// the pixel size of either the vertical or the horizontal size of the walls.
/// </summary>
public const int WallSize = 30;
/// <summary>
/// the extents (half of the size) of the pixel size of either the width for the vertical walls,
/// or the height for the horizontal walls.
/// </summary>
public const int WallSizeExtents = WallSize / 2;
}