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
+23
View File
@@ -0,0 +1,23 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace LunaLightXMG
{
public class Platform
{
public Vector2 Position { get; private set; }
public BoundingBox BoundingBox { get; private set; }
public Platform(Vector2 position, int width, int height)
{
Position = position;
BoundingBox = new BoundingBox(new Rectangle((int)position.X, (int)position.Y, width, height));
}
public void Draw(SpriteBatch spriteBatch, Texture2D texture)
{
spriteBatch.Draw(texture, Position, Color.White);
}
}
}