Esempio n. 1
0
 public Player(PlayerSprite playerSprite, LocalNetworkGamer gamer)
 {
     m_state = new PlayerState(new Vector2(0, 0), FacingDirection.South);
     m_playerSprite = playerSprite;
     Position = new Vector2(1, 1);
     m_velocity = new Vector2(0, 0);
     m_collissionWidth = 32;
     m_collissionHeight = 44;
     m_playerSprite.SetAnimation(PlayerAnimation.IdleDown);
     m_networkGamer = gamer;
     if (gamer != null)
         gamer.Tag = this;
 }
Esempio n. 2
0
 public Player(PlayerSprite playerSprite)
     : this(playerSprite, null)
 {
 }