Пример #1
0
 protected override void LoadContent()
 {
     base.LoadContent();
     this.spriteTexture = this.Game.Content.Load <Texture2D>("pacmanSingle");
     this.Origin        = new Vector2(this.spriteTexture.Width / 2, this.spriteTexture.Height / 2);
     this.Location      = new Vector2(GraphicsDevice.Viewport.Width / 2, GraphicsDevice.Viewport.Height / 2);
     this.Speed         = 400;
     this.MoveState     = PlayerMovingState.Still;
     this.DashState     = PlayerDashState.NotUsed;
     this.DMGState      = PlayerDMGState.Vulnerable;
     this.State         = PlayerState.Alive;
     this.PlayerHealth  = 100;
 }
Пример #2
0
 public Player()
 {
     this.MoveState = PlayerMovingState.Still;
     this.DashState = PlayerDashState.NotUsed;
     this.DMGState  = PlayerDMGState.Vulnerable;
 }