911072f1b3
--HG-- rename : axios/Engine/Glee2D/CircleItem.cs => axios/Engine/Gleed2D/CircleItem.cs rename : axios/Engine/Glee2D/CustomProperty.cs => axios/Engine/Gleed2D/CustomProperty.cs rename : axios/Engine/Glee2D/Item.cs => axios/Engine/Gleed2D/Item.cs rename : axios/Engine/Glee2D/Layer.cs => axios/Engine/Gleed2D/Layer.cs rename : axios/Engine/Glee2D/Level.cs => axios/Engine/Gleed2D/Level.cs rename : axios/Engine/Glee2D/PathItem.cs => axios/Engine/Gleed2D/PathItem.cs rename : axios/Engine/Glee2D/RectangleItem.cs => axios/Engine/Gleed2D/RectangleItem.cs rename : axios/Engine/Glee2D/TextureItem.cs => axios/Engine/Gleed2D/TextureItem.cs
37 lines
898 B
C#
37 lines
898 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, ref Dictionary<string, Texture2D> cache)
|
|
{
|
|
base.load(cm, world, ref cache);
|
|
|
|
_body = BodyFactory.CreateCircle(world, Radius, 1f);
|
|
_body.Position = Position;
|
|
_body.UserData = this;
|
|
}
|
|
|
|
}
|
|
}
|