mirror of
https://github.com/TheRavenwoodArts/LunaLightXMG.git
synced 2026-07-31 00:05:02 -07:00
24 lines
634 B
C#
24 lines
634 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
|