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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user