Super Happy Jumping Pickle Man!

This commit is contained in:
J. M. Ellis
2024-05-27 21:50:09 -07:00
parent 1bfddab1b5
commit 02907cb4b6
11 changed files with 396 additions and 55 deletions
+24
View File
@@ -0,0 +1,24 @@
using Microsoft.Xna.Framework;
namespace LunaLightXMG
{
public class BoundingBox
{
public Rectangle Bounds { get; private set; }
public BoundingBox(Rectangle bounds)
{
Bounds = bounds;
}
public bool Intersects(BoundingBox other)
{
return Bounds.Intersects(other.Bounds);
}
public void Update(Vector2 position, int width, int height)
{
Bounds = new Rectangle((int)position.X, (int)position.Y, width, height);
}
}
}