Project290.Games.Solitude.SolitudeObjects.Player.Player C# (CSharp) Method

Player() public method

public Player ( Vector2 position, World world ) : System
position Vector2
world Project290.Physics.Dynamics.World
return System
        public Player(Vector2 position, World world)
            : base(position, world, (float)Player.width, (float)Player.height)
        {
            body.BodyType = BodyType.Dynamic;
            PlayerFixture = FixtureFactory.CreateEllipse(width / 2, height / 2, 32, .2f, body);
            //PlayerFixture = FixtureFactory.CreateRectangle(width, height, .05f, Vector2.Zero, body, null);
            PlayerFixture.Restitution = .8f;
            texture = TextureStatic.Get("solitudePlayer");

            enterPosition = new Vector2(900, 830);

            Reset();

            hpBar = new HealthBar(oxygen, oxygenCap);
            fBar = new FuelBar(fuel, fuelCap);
            //lCnt = new LivesCount();
        }