Fixed Movement, now slide along walls instead of stopping immediately. Also fixed error where chunks don't load their collision

This commit is contained in:
2020-06-25 07:37:58 -06:00
parent 7d4420c54c
commit b6f39d8f12
3 changed files with 37 additions and 31 deletions

View File

@@ -5,13 +5,11 @@ namespace Collector.Character
{
public class Collision
{
private readonly int _tileWidth;
public RectangleF Rectangle { get; private set; }
public Collision(int x, int y,int tileWidth)
public Collision(int x, int y)
{
_tileWidth = tileWidth;
Rectangle = new RectangleF(x,y,tileWidth,tileWidth);
Rectangle = new RectangleF(x,y,IRestrictions.TileSize,IRestrictions.TileSize);
}
}
}