Пример #1
0
 public PlayerClass(Game1 mainGame, int PlayerWidth, int PlayerHeight)
 {
     moveXSpeed          = 3;
     playerRect          = new Rectangle(mainGame.bufferWidth / 2, mainGame.bufferHeight - PlayerHeight, PlayerWidth, PlayerHeight);
     playerMove          = new GeneralAnimation(100, new Rectangle(0, 0, 256, 64), new Rectangle(0, 0, 64, 64));
     playerFire          = new GeneralAnimation(50, new Rectangle(0, 0, 256, 64), new Rectangle(0, 0, 64, 64));
     playerMoveAnimation = mainGame.playerMoveAnimation;
     playerFireAnimation = mainGame.playerFireAnimation;
     playerMove.LoadContent();
     playerFire.LoadContent();
 }
 public void LoadContent()
 {
     alienAnimation.LoadContent();
 }