示例#1
0
 public HiddenBlock(Game1 game, IItem item)
 {
     this.game = game;
     this.item = item;
     Collision = new BlockCollision();
     sprite    = BlockSpriteFactory.Instance.CreateQuestionBlockSprite();
 }
示例#2
0
 public MultiCoinBlock(Game1 game, IItem item)
 {
     this.game = game;
     this.item = item;
     Collision = new BlockCollision();
     sprite    = BlockSpriteFactory.Instance.CreateBrickSprite();
 }
示例#3
0
        public FireBlock(Game1 game, int x, int y)
        {
            this.game = game;
            Collision = new BlockCollision();
            sprite    = BlockSpriteFactory.Instance.CreateQuestionBlockHitSprite();

            Position = new Vector2(x, y);

            for (int i = 0; i < fireballs.Length; ++i)
            {
                fireballs[i] = new Fireball(game,
                                            new Vector2(Position.X + 0.25f - (float)i / 4, Position.Y + 0.25f), 0)
                {
                    DisableGravity = true
                };
                game.WorldLoader.Fireballs.Add(fireballs[i]);
            }
        }
示例#4
0
 public GroundBrick()
 {
     Collision = new BlockCollision();
     sprite    = BlockSpriteFactory.Instance.CreateGroundBrickOverWorldSprite();
 }
示例#5
0
 public UGBrick(Game1 game)
 {
     this.game = game;
     sprite    = BlockSpriteFactory.Instance.CreateUGBrickSprite();
     Collision = new BlockCollision();
 }
示例#6
0
 public Bridge()
 {
     this.sprite = WorldElementSpriteFactory.Instance.CreateBridgeSprite();
     Collision   = new BlockCollision();
 }
示例#7
0
 public GrayBrick()
 {
     Collision = new BlockCollision();
     sprite    = BlockSpriteFactory.Instance.CreateGrayBrickSprite();
 }
示例#8
0
 public Princess()
 {
     Bounds    = new Rectangle(0, 0, 1, 1);
     Collision = new BlockCollision();
     sprite    = ItemSpriteFactory.Instance.CreatePrincessSprite();
 }
示例#9
0
 public UGGroundBrick()
 {
     Collision = new BlockCollision();
     sprite    = BlockSpriteFactory.Instance.CreateUGGroundBrickSprite();
 }
示例#10
0
 public BrickIndestructable()
 {
     Collision = new BlockCollision();
     sprite    = BlockSpriteFactory.Instance.CreateBrickIndestructableSprite();
 }
示例#11
0
 public Steps()
 {
     this.sprite = BlockSpriteFactory.Instance.CreateStepSprite();
     Collision   = new BlockCollision();
 }
示例#12
0
 public InvisibleBlock()
 {
     Collision = new BlockCollision();
 }