This is the readme file for bricks.zip

bricks.zip should contain:
    bricks.exe  -   The game compiled for CGA/EGA/VGA
    bricks.c    -   The source code for the above
    local.h     -   A header file for bricks.c
    bkmak.bat   -   A batch file for making bricks.exe
    brick.ln    -   Response file for tlink
    makefile.bk -   A makefile for ndmake45, if you have it
    readme      -   This file.

Years ago there was a game called bricks.com that my wife enjoyed
playing.  It was a CGA, character mode game that never seemed to
get ported to EGA or VGA.  So, every time she would ask me about
it I would think, "I'll write it in C.".

Well, here's what I came up with.  It seems to work okay under
EGA on a 16Mhz-386SX and VGA on 25Mhz-486DX or 33Mhz-486DX systems.

There are 5 levels of play, and a Magic brick appears to boost the
score if you get it.  I tried to duplicate the original as best as
I could remember it.

I've included the source code, I used TC++ 2.0.  I commented the
code so it shouldn't be too hard to follow what is going on.  Some
of the values used for timing, counting, moving are subjective.
The only reason for there value is it seemed to work right.

I use TC++'s getopt.c routine to process command line options.
If you don't have it just change
        #define GETOPT
            - to -
        #undef GETOPT
And remove getopt.obj from the bkmak.bat or makefile.bk

You will need to fix the path name in bkmak.bat and bricks.ln
Fix bkmak.bat first and then you will better understand what needs
changing in the tlink response file, I think.

I used registeredbgifont() and registerbgidriver(). So, you will
need to create egavga.obj/cga.obj/litt.obj with the bigobj
utility.  Otherwise you have to have the bgi's and point to them.


There are only 3 options.
    -d #  Set the loop delay, default is 18 and it is used in
          a call to delay().
    -b #  The number of balls you want to start out with.  The
          default is 20.
    -s    Turn off the sound.

    bricks /d25 /b 25 /s  Would set the loop delay to 25,
                                set the number of balls to 25
                                and turn off the sound.

    bricks -              Will display a usage statement.

As always any use of this program means you assume full responsibility
for damage to you equipment, software, household, employer, environment,
eyesight, butt, fingers, ...

The author is not responsible for anything bad. Including fire, theft,
acts of God, hair loss, ear wax, ...

                                    -bles

