axiosengine/axios/Engine/Glee2D/RectangleItem.cs
Nathan Adams 44cb32048d Adding license for Glee2D
Adding support for Glee2D
2012-05-07 22:20:22 -05:00

37 lines
889 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FarseerPhysics.Dynamics;
using FarseerPhysics.Common;
using FarseerPhysics.SamplesFramework;
using FarseerPhysics.Factories;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace Axios.Engine.Glee2D
{
public partial class RectangleItem : Item
{
public float Width;
public float Height;
public Color FillColor;
Body _body;
public RectangleItem()
{
}
public override void load(ContentManager cm, World world)
{
base.load(cm, world);
_body = BodyFactory.CreateRectangle(world, Width, Height, 1f);
_body.Position = Position;
_body.UserData = this;
}
}
}