Exemplo n.º 1
0
 public BOBrick()
 {
     ent      = null;
     x        = y = width = height = 0;
     powerup  = POWERUP.NONE;
     isBroken = false;
 }
Exemplo n.º 2
0
        public virtual void ReadFromSaveGame(VFile savefile, GameBustOutWindow game)
        {
            savefile.Read(out x);
            savefile.Read(out y);
            savefile.Read(out width);
            savefile.Read(out height);

            savefile.Read(out powerup);
            savefile.Read(out isBroken);

            savefile.Read(out int index);
            ent = game.entities[index];
        }
Exemplo n.º 3
0
        public BOBrick(BOEntity ent, float x, float y, float width, float height)
        {
            this.ent    = ent;
            this.x      = x;
            this.y      = y;
            this.width  = width;
            this.height = height;
            powerup     = POWERUP.NONE;

            isBroken = false;

            ent.position.x = x;
            ent.position.y = y;
            ent.SetSize(width, height);
            ent.SetMaterial("game/bustout/brick");

            ent.game.entities.Add(ent);
        }