44cb32048d
Adding support for Glee2D
37 lines
846 B
C#
37 lines
846 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 CircleItem : Item
|
|
{
|
|
public float Radius;
|
|
public Color FillColor;
|
|
|
|
Body _body;
|
|
|
|
public CircleItem()
|
|
{
|
|
}
|
|
|
|
public override void load(ContentManager cm, World world)
|
|
{
|
|
base.load(cm, world);
|
|
|
|
_body = BodyFactory.CreateCircle(world, Radius, 1f);
|
|
_body.Position = Position;
|
|
_body.UserData = this;
|
|
}
|
|
|
|
}
|
|
}
|