-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathConfig.cs
More file actions
26 lines (22 loc) · 942 Bytes
/
Config.cs
File metadata and controls
26 lines (22 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using Microsoft.Xna.Framework;
using Newtonsoft.Json;
using System.Reflection;
namespace ShadersTest
{
static class Config
{
public static readonly string APP_NAME = "Pixel Planets";
public static readonly string APP_VERSION = Assembly.GetExecutingAssembly().GetName().Version.ToString();
public static readonly int VIEWPORT_WIDTH = 1280;
public static readonly int VIEWPORT_HEIGHT = 640;
public static readonly int PLANET_RECT_SIZE = 400;
public static readonly int PLANET_PADDING = (VIEWPORT_HEIGHT - PLANET_RECT_SIZE) / 2;
// Used in json outputs
public static JsonSerializerSettings JsonSettings = new JsonSerializerSettings
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
};
// Used for drawing
public static readonly Rectangle ONE_PIXEL_RECT = new Rectangle(0, 0, 1, 1);
}
}