Beispiel #1
0
 public Player(Texture2D text, IInputReader reader)
 {
     postieLevel         = new PlayerPosition();
     frames              = new FramesPlayer();
     playerTexture       = text;
     animatie            = new AnimatiePlayer(frames);
     Position            = postieLevel.Postions[GameState.level];
     this.inputReader    = reader;
     moveCommand         = new MoveCommand();
     _collisionRectangle = new Rectangle((int)Position.X, (int)Position.Y, 80, 120);
 }
Beispiel #2
0
 public AnimatiePlayer(FramesPlayer frames)
 {
     this.Frames = frames;
 }