Fixed the discrepancy between the screen coords and the game coords and also fixed mouse problem when zoomed out too far.

This commit is contained in:
2020-06-23 04:18:00 -06:00
parent c464d19857
commit 86cc05f0d7
42 changed files with 316 additions and 3472 deletions

View File

@@ -1,4 +1,7 @@
using System;
using Collector.Character;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using static Collector.IRestrictions;
namespace Collector
@@ -6,17 +9,17 @@ namespace Collector
public interface IRestrictions
{
public const int Seed = 1;
public const float ViewportHeight = 9/2f;
public const float ViewportWidth = 16/2f;
public const int TileSize = 1;
public const float ViewportHeight = 9f;
public const float ViewportWidth = 16f;
public const int MovementSpeed = 1;
public const int FreeSpeed = 2;
public const int KeyDelay = 0;
public const int TileSize = 32;
public const int KeyDelay = 20;
public const int ChunkSize = 8;
public const int SuperChunkSize = 1;
public const int TileShift = 5;
public const int ChunkShift = 3;
public const int RenderDistance = 3;
public const int RenderDistance = 5;
public const float RenderTime = 1/60f;
public const float Zoom = 30;
public const float Scale = ViewportWidth/ViewportHeight;
}
}