Esempio n. 1
0
        public SnowBall(Stage stage, float x, float y, int width, int height, int type, Object user, Vector2 localPosition)
            : base(stage, x, y, width, height, type)
        {
            this.width = 96;
            this.height = 96;
            this.user = user;
            HP = 2;

            //block = new DamageBlock (stage, x + 8, y + 32, 48, 48);     // 下端は合わせる    // DamageBlock
            block = new DamageBlock(stage, x, y, 96, 96, this, Vector2.Zero);
            stage.dynamicTerrains.Add(block);

            Load();
        }
Esempio n. 2
0
        public SnowBall(Stage stage, float x, float y, int width, int height, int type, Object user, Vector2 localPosition)
            : base(stage, x, y, width, height, type)
        {
            this.width  = 96;
            this.height = 96;
            this.user   = user;
            HP          = 2;

            //block = new DamageBlock (stage, x + 8, y + 32, 48, 48);     // 下端は合わせる    // DamageBlock
            block = new DamageBlock(stage, x, y, 96, 96, this, Vector2.Zero);
            stage.dynamicTerrains.Add(block);

            Load();
        }