Beispiel #1
0
 public Player(Vector2 pos, Keys xNegativeButton, Keys xPositiveButton, Keys jumpButton, Keys shootButton, PlayerSpriteSet spriteSet) : base(pos, spriteSet.idleTexture)
 {
     this.xNegativeButton     = xNegativeButton;
     this.xPositiveButton     = xPositiveButton;
     this.jumpButton          = jumpButton;
     this.shootButton         = shootButton;
     this.animationController = new AnimationController(sprite, spriteSet);
 }
 public AnimationController(Texture2D sprite, PlayerSpriteSet spriteSet)
 {
     this.sprite    = sprite;
     this.spriteSet = spriteSet;
 }