EXPLOD 1.1 - a simple fireworks program for the CGA or HGC
This is a simple fireworks program that is a spinoff of some
explosion handling routines for a game I am working on.
explod.doc - this file
explod.exe - packed executable
explod.c - main source file
expa.asm - graphics support routines
HOW TO RUN
The following instructions will be displayed briefly when the
program is run without any parameters. They will not be displayed
if parameters are given.
Parameters can be one of
Default is auto-detect (but must specify for EGA/VGA)
explod (for 8MHz 8088 XT with CGA or HGC card)
explod -vc -s5 -t3 (for 4.77MHz XT with EGA card in CGA mode)
explod -t10 -s15 (for 8MHz 80186 XT with HGC)
explod -p300 -x200 -y120 -s6 -d10 (for 8 Mhz AT with HGC)
Press ESCAPE to return to DOS
HOW TO COMPILE
As distributed, the code is compilable with Turbo C and MASM using
the MAKETC.BAT file (TC 1.5 and MASM 5.0 were used, but other versions
should work as well).
The code was developed with Datalight C 2.20 and Arrowsoft ASM 1.00d.
To compile in this environment, comment out the 'TURBOC equ 1' line and
uncomment the 'DLC equ 1' line in EXPA.ASM, and then run MAKEDLC.BAT.
To use with other compilers, the segment and group names should be
redefined according to the compiler's manual. A generic command
sequence to make the executable would be:
masm /mx expa ;
cc explod.c expa.obj
Explosions "wrap around" on the four edges of the screen. A few
lines of address checking code in _gr_frplot can eliminate this,
but I didn't put them in because they would slow down the animation
somewhat (and every bit of speed counts on slow XTs).
4516 Albert St.
Canada V5C 2G5
The executable and source code may be freely distributed and used,
provided that my name remains in the source code, and that modified
versions of the source and executable are clearly distinguished
from the original.