DangerousD/DangerousD/GameCore/GameObjects/MapObjects/StopTile.cs
2023-08-17 16:48:29 +03:00

20 lines
No EOL
720 B
C#

using DangerousD.GameCore.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace DangerousD.GameCore.GameObjects.MapObjects;
public class StopTile : MapObject
{
public override bool IsColliderOn { get; protected set; } = true;
public StopTile(Vector2 position, Vector2 size, Rectangle sourceRectangle) : base(position, size, sourceRectangle)
{
}
public override void Draw(SpriteBatch spriteBatch)
{
base.Draw(spriteBatch);
//debug
spriteBatch.Draw(debugTexture, new Rectangle(Rectangle.X - GraphicsComponent.CameraPosition.X, Rectangle.Y - GraphicsComponent.CameraPosition.Y, Rectangle.Width, Rectangle.Height), Color.White);
}
}