public MarioRunning(Mario mario)
 {
     this.mario = mario;
     big        = new AnimatedSprite(MarioSpriteFactory.CreateMarioBigRunningSprite(), UtilityClass.one, UtilityClass.specializedSpriteTotalFramesAndMarioRunningCols, mario.Location, UtilityClass.generalTotalFramesAndSpecializedRows);
     small      = new AnimatedSprite(MarioSpriteFactory.CreateMarioSmallRunningSprite(), UtilityClass.one, UtilityClass.specializedSpriteTotalFramesAndMarioRunningCols, mario.Location, UtilityClass.generalTotalFramesAndSpecializedRows);
     fire       = new AnimatedSprite(MarioSpriteFactory.CreateMarioFireRunningSprite(), UtilityClass.one, UtilityClass.specializedSpriteTotalFramesAndMarioRunningCols, mario.Location, UtilityClass.generalTotalFramesAndSpecializedRows);
     ice        = new AnimatedSprite(MarioSpriteFactory.CreateMarioIceRunningSprite(), UtilityClass.one, UtilityClass.specializedSpriteTotalFramesAndMarioRunningCols, mario.Location, UtilityClass.generalTotalFramesAndSpecializedRows);
 }
Beispiel #2
0
 public EndingSequenceMarioSprite(Vector2 location, bool smallMario, bool fireMario, bool iceMario)
 {
     this.smallMario = smallMario;
     this.fireMario  = fireMario;
     this.iceMario   = iceMario;
     bigFlagpole     = new AnimatedSprite(MarioSpriteFactory.CreateMarioBigFlagpoleSprite(), UtilityClass.one, UtilityClass.two, location, UtilityClass.enemyTotalFramesAndMarioFlagpoleTotalFrames);
     smallFlagpole   = new AnimatedSprite(MarioSpriteFactory.CreateMarioSmallFlagpoleSprite(), UtilityClass.one, UtilityClass.two, location, UtilityClass.enemyTotalFramesAndMarioFlagpoleTotalFrames);
     fireFlagpole    = new AnimatedSprite(MarioSpriteFactory.CreateMarioFireFlagpoleSprite(), UtilityClass.one, UtilityClass.two, location, UtilityClass.enemyTotalFramesAndMarioFlagpoleTotalFrames);
     iceFlagpole     = new AnimatedSprite(MarioSpriteFactory.CreateMarioIceFlagpoleSprite(), UtilityClass.one, UtilityClass.two, location, UtilityClass.enemyTotalFramesAndMarioFlagpoleTotalFrames);
     bigWalking      = new AnimatedSprite(MarioSpriteFactory.CreateMarioBigRunningSprite(), UtilityClass.one, UtilityClass.specializedSpriteTotalFramesAndMarioRunningCols, location, UtilityClass.generalTotalFramesAndSpecializedRows);
     smallWalking    = new AnimatedSprite(MarioSpriteFactory.CreateMarioSmallRunningSprite(), UtilityClass.one, UtilityClass.specializedSpriteTotalFramesAndMarioRunningCols, location, UtilityClass.generalTotalFramesAndSpecializedRows);
     fireWalking     = new AnimatedSprite(MarioSpriteFactory.CreateMarioFireRunningSprite(), UtilityClass.one, UtilityClass.specializedSpriteTotalFramesAndMarioRunningCols, location, UtilityClass.generalTotalFramesAndSpecializedRows);
     iceWalking      = new AnimatedSprite(MarioSpriteFactory.CreateMarioIceRunningSprite(), UtilityClass.one, UtilityClass.specializedSpriteTotalFramesAndMarioRunningCols, location, UtilityClass.generalTotalFramesAndSpecializedRows);
 }