예제 #1
0
 public FireMarioCrouchingSprite(int isMovingRight, Level level, Vector2 location)
 {
     this.isMovingRight = isMovingRight;
     this.level = level;
     this.texture = level.ContentLoad("Mario/Fire/FireCrouchingMario");
     this.location = location;
 }
예제 #2
0
 // Constructor
 public GoombaMovingSprite(Level level)
 {
     this.level = level;
     this.texture = level.ContentLoad("Enemies/Goomba/goomba_walk");
     totalFrames = rows*columns/2;
     frameDelay = frameDelaySet;
 }
예제 #3
0
 public SmallMarioIdleSprite(int isMovingRight, Level level, Vector2 location)
 {
     this.isMovingRight = isMovingRight;
     this.level = level;
     this.texture = level.ContentLoad("Mario/Small/SmallIdleMario");
     this.location = location;
 }
예제 #4
0
 public LakituThrow(Level level)
 {
     this.level = level;
     this.texture = level.ContentLoad("Enemies/Lakitu/lakitu_throwing");
     this.spriteBatch = level.spriteBatch;
     totalFrames = rows * columns / 2;
     frameDelay = frameDelaySet;
 }
예제 #5
0
 public KoopaIntoShell(Level level)
 {
     this.level = level;
     this.texture = level.ContentLoad("Enemies/Koopa/Koopa_Into_Shell");
     this.spriteBatch = level.spriteBatch;
     totalFrames = rows * columns/2;
     frameDelay = frameDelaySet;
 }
예제 #6
0
 public SpinyThrown(Level level)
 {
     this.level = level;
     this.texture = level.ContentLoad("Enemies/Spiny/spiny_thrown");
     this.spriteBatch = level.spriteBatch;
     totalFrames = rows * columns / 2;
     frameDelay = frameDelaySet;
 }
예제 #7
0
 // Constructor
 public GoombaDeathSprite(Level level)
 {
     this.level = level;
     this.texture = level.ContentLoad("Enemies/Goomba/goomba_death");
     this.font = level.game.Content.Load<SpriteFont>("actions");
     totalFrames = rows*columns;
     collider.Width = texture.Width / columns;
     collider.Height = texture.Height / rows;
 }
예제 #8
0
 // Constructor
 public FireMarioRunningSprite(int isMovingRight, Level level, int nextFrame, Vector2 location)
 {
     this.isMovingRight = isMovingRight;
     this.level = level;
     this.texture = level.ContentLoad("Mario/Fire/FireRunningMario");
     currentFrame = nextFrame;
     totalFrames = 8;
     this.location = location;
 }
예제 #9
0
        // Constructor
        public BigMarioJumpingSprite(int isMovingRight, Level level, int nextFrame, Vector2 location)
        {
            this.isMovingRight = isMovingRight;
            this.level = level;
            this.texture = level.ContentLoad("Mario/Big/BigJumpingMario");
            currentFrame = nextFrame;
            frameDelay = 0;
            totalFrames = 18;

            this.location = location;
        }
예제 #10
0
 public BlockFactory(Level level)
 {
     this.level = level;
     this.IdleQuestionBlock = level.ContentLoad("Blocks/QuestionBlockIdle");
     this.BumpedQuestionBlock = level.ContentLoad("Blocks/QuestionBlockBumped");
     this.IdleBrickBlock = level.ContentLoad("Blocks/BrickBlockIdle");
     this.IdleCastleBrickBlock = level.ContentLoad("Blocks/CastleBrickBlockIdle");
     this.IdleUsedBlock = level.ContentLoad("Blocks/UsedBlockIdle");
     this.GreenPipeTexture = level.ContentLoad("Blocks/GreenPipe");
     this.CastlePipeTexture = level.ContentLoad("Blocks/CastlePipe");
     this.IdleDarkBrickBlock = level.ContentLoad("Blocks/DarkBrickBlockIdle");
     this.BumpedDarkBrickBlock = level.ContentLoad("Blocks/DarkBrickBlockBumped");
     this.FloorBlock = level.ContentLoad("Blocks/FloorBlock");
     this.CastleFloorBlock = level.ContentLoad("Blocks/CastleFloorBlock");
     this.DarkFloorBlock = level.ContentLoad("Blocks/DarkFloorBlock");
     this.IdleBlocklet = level.ContentLoad("Blocks/Blocklet");
     this.IdleCastleBlocklet = level.ContentLoad("Blocks/CastleBlocklet");
     this.PyramidBlock = level.ContentLoad("Blocks/PyramidBlock");
     this.IdleLavaBlock = level.ContentLoad("Blocks/Lava");
     this.FlagpoleTexture = level.ContentLoad("Backgrounds/flagpole");
     this.SecretExit = level.ContentLoad("Blocks/DarkRoomExit");
     this.CastlePortalOne = level.ContentLoad("Blocks/CastlePortalOne");
     this.CastleBridge = level.ContentLoad("Blocks/CastleBridge");
     this.CastleLever = level.ContentLoad("Blocks/CastleLever");
 }