Made lucas the Main character and also added collision
This commit is contained in:
17
Collector/src/Character/Collision.cs
Normal file
17
Collector/src/Character/Collision.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
using Humper.Base;
|
||||
|
||||
namespace Collector.Character
|
||||
{
|
||||
public class Collision
|
||||
{
|
||||
private readonly int _tileWidth;
|
||||
public RectangleF Rectangle { get; private set; }
|
||||
|
||||
public Collision(int x, int y,int tileWidth)
|
||||
{
|
||||
_tileWidth = tileWidth;
|
||||
Rectangle = new RectangleF(x,y,tileWidth,tileWidth);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user