-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettings.cs
More file actions
24 lines (22 loc) · 838 Bytes
/
Settings.cs
File metadata and controls
24 lines (22 loc) · 838 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
using System;
using Microsoft.Xna.Framework;
namespace Doom;
public static class Settings
{
public static string StartMap = "E1M1";
public static int DoomWidth = 320;
public static int DoomHeight = 200;
public static int Scale = 4;
public static int Width = DoomWidth * Scale;
public static int Height = DoomHeight * Scale;
public static int HalfWidth = Width / 2;
public static int HalfHeight = Height / 2;
public static int TargetFps = 60;
public static int FOV = 90;
public static float HalfFOV = FOV / 2f;
public static float PlayerSpeed = 0.3f;
public static float PlayerRotationSpeed = 0.12f;
public static int PlayerHeight = 41;
public static float ScreenDistance = HalfWidth / MathF.Tan(MathHelper.ToRadians(HalfFOV));
public static bool UseMapRenderer = false;
}