예제 #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();
 }