Example #1
0
        public AbstractBoss(int type, int x, int y)
        {
            pose      = BossAttributes.GetSprites(type)[0];
            this.type = type;

            originalLocation = new Rectangle(x * Constant.TILE_SIZE, (y + 1) * Constant.TILE_SIZE, 0, 0);
            killExplosion    = BossAttributes.GetKillSprite();
            blinkFrames      = 0;
        }
Example #2
0
        public BunnyMan(int x, int y) : base(Constant.BUNNYMAN, x, y)
        {
            Texture2D[] sprites = BossAttributes.GetSprites(Constant.BUNNYMAN);
            defaultSprite = sprites[1];
            shootSprite   = sprites[2];
            crouchSprite  = sprites[3];
            seagullBullet = sprites[4];
            jumpCloud     = sprites[5];

            sprite = defaultSprite;

            drawRect = new Rectangle(0, 0, sprite.Width / 2, sprite.Height);
            location = new Rectangle(x, y, drawRect.Width, drawRect.Height);

            Reset();
        }
Example #3
0
        public PosterMan(int x, int y) : base(Constant.POSTERMAN, x, y)
        {
            Texture2D[] sprites = BossAttributes.GetSprites(Constant.POSTERMAN);
            defaultSprite = sprites[1];
            jumpSprite    = sprites[2];
            runSprite     = sprites[3];
            bullet1       = sprites[4];
            bullet2       = sprites[5];


            sprite = defaultSprite;

            drawRect = new Rectangle(0, 0, sprite.Width / 2, sprite.Height);
            location = new Rectangle(x, y, drawRect.Width, drawRect.Height);

            Reset();
        }
Example #4
0
        public LurkerMan(int x, int y) : base(Constant.LURKERMAN, x, y)
        {
            Texture2D[] sprites = BossAttributes.GetSprites(Constant.LURKERMAN);
            defaultSprite     = sprites[1];
            defaultSpriteFade = sprites[4];
            floatSprite       = sprites[2];
            floatSpriteFade   = sprites[3];

            sprite = defaultSprite;

            drawRect = new Rectangle(0, 0, sprite.Width / 2, sprite.Height);
            location = new Rectangle(x, y, drawRect.Width, drawRect.Height);

            standPoints    = new Point[5];
            standPoints[0] = new Point(165, 198);
            standPoints[1] = new Point(517, 198);
            standPoints[2] = new Point(165, 326);
            standPoints[3] = new Point(517, 326);
            standPoints[4] = new Point(341, 390);

            Reset();
        }