public Player ( Microsoft.Xna.Framework.Content.ContentManager content, PhysicsEnvironment &environment, IControlScheme controlScheme, float friction, |
||
content | Microsoft.Xna.Framework.Content.ContentManager | Content manager for the game |
environment | PhysicsEnvironment | |
controlScheme | IControlScheme | Controller scheme for the player(Controller or keyboard) |
friction | float | |
entity | ||
Результат | System |
public Player(ContentManager content, ref PhysicsEnvironment environment, IControlScheme controlScheme, float friction, EntityInfo entity)
: base(content, ref environment,friction, entity)
{
_mControls = controlScheme;
SpawnPoint = MPosition;
_mRotation = 0.0f;
_mGoalRotation = 0.0f;
_mFaceGoalRotation = 0.0f;
_mFaceRotation = 0.0f;
Id = entity.MId;
PlayerFaces.Load(content);
MCurrentTexture = PlayerFaces.FromString("Smile");
MSize = new Vector2(MCurrentTexture.Width, MCurrentTexture.Height);
_mPreviousDirection = GravityDirections.Down;
}