mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 20:12:23 +00:00
15 lines
403 B
C#
15 lines
403 B
C#
using Microsoft.Xna.Framework;
|
|
using MonoGame.Extended;
|
|
using MonoGame.Extended.Sprites;
|
|
|
|
namespace Pong.GameObjects
|
|
{
|
|
public class GameObject
|
|
{
|
|
public Vector2 Position;
|
|
public Vector2 Scale = Vector2.One;
|
|
public float Rotation;
|
|
public Sprite Sprite;
|
|
public RectangleF BoundingRectangle => Sprite.GetBoundingRectangle(Position, 0, Vector2.One);
|
|
}
|
|
} |