home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power CD-ROM!! 7
/
POWERCD7.ISO
/
games
/
xerix2
/
x2src.doc
< prev
next >
Wrap
Text File
|
1994-11-09
|
10KB
|
232 lines
-----------------------------------------------
Information on the XERIX II Source Code Package
-----------------------------------------------
from Brendan Reville/Twilight Software
Xerix II: The Caverns of Mars, is blitzing the world with
its awesome quality and intense action.
Since the release of Xerix I, programmers from around the
world have asked Brendan Reville to share his secrets, from
sprite collision, to multi-layered scrolling, to advanced
keyboard handling, to arcade game logic, and beyond. Many
programmers wanted to see the source code to see how it was done.
Now Brendan Reville, the 17 year old creator of Xerix I and
Xerix II, has decided to make available the source code to Xerix
II. The complete Borland/Turbo C source code to the game, along
with its .PRJ project file, all the ShareWare edition's level
definition files, all other data files (also for the ShareWare
edition's first six levels) AND all support programs, is
available for only $89 Australian Dollars. (That's less than $70
US dollars!)
The source code is provided mainly as an educational tool,
so that experienced programmers may find out how certain things
in Xerix II are done. Many routines may be freely reused in
other programs, while some other files and routines may NOT be
reused in other programs, without prior written permission from
Brendan Reville.
And as an added bonus, the Xerix II Source Code Package
includes a full Registered copy of the game - at no extra charge!
---- The following Projects (.PRJ project files) are included
(and they contain the listed C files):
[note that only the files marked with an asterix (*) may be
reused in your own programs]
XERIX2 - the main game
x2action.c - the main action loop
x2alien.c - controls aliens
* x2block.c - controls backing scenery tiles(/blocks)
x2bonus.c - controls bonus modules
x2ctrl.c - Xerix II control menu system
* x2file.c - file management and miscellaneous
(including data decompression)
* x2font.c - proportionally-spaced font management
x2game.c - game structure
* x2im.c - image drawing and collision detection
x2input.c - handles user input
* x2mem.c - memory handling routines
* x2menu.c - menu handling routines
* x2mkey.c - MultiKey multiple-keystroke-reading handler
* x2ms.c - MultiScape multi-layered scrolling routines
* x2pal.c - palette handling functions
* x2picdsp.c - displays image file from within data file
* x2scale.c - bitmap scaling routine
* x2seq.c - scrolling text-sequence routine
x2shot.c - player's-shots management routines
* x2sys.c - Xerix II system interface routines
(sound/graphics initialisation etc.)
* x2timing.c - timing routines
x2title.c - title sequence routine
x2vars.c - declarations of all global variables
xerix2.c - main routine
dsmistuf.c - empty functions to replace DSMI code
(There are over 8000 lines of C code in total!)
RESMAN - resource manager, puts all data files into one file
* resman.c - the resource manager program
MAKLEV - creates one level data file from a .h level
definition file
* maklev.c - outputs level data file from .h file
(with data compression)
MAKESEQ - writes special sequence files (like dying/winning)
* makeseq.c - writes special .seq files
Note that ONLY the above C files that are actually marked
WITH an asterix (*) may be reused in your own programs.
All other files may be viewed, but may NOT be reused,
whether modified or not, in your own programs.
-- A ShareWare evaluation copy of Fastgraph/Light (from Ted
Gruber Software) is included so that you can compile the program
and also try Fastgraph for yourself. The included CLIP utility
will also allow you to view the included .SPR image files.
-- DSMI (Otto Chrons' Digital Sound and Music Interface -
the sound system used) is not required to recompile the program.
In fact the initialisation routine and music-loading routines
were modified from Otto Chrons' copyrighted code. Hence they
cannot be distributed and have been replaced by empty functions
(in dsmistuf.c). References to any of DSMI's routines have been
removed or commented out so that Xerix II can be recompiled,
requiring only Fastgraph (or Fastgraph/Light).
-- A copy of DMP (the Dual Module Player) is also included
in the Source Code Package. This utility by Otto Chrons, which
uses DSMI, allows you to play a variety of digital music formats
through many different sound devices. This program demonstrates
the capabilities of DSMI, and will also let you play the included
(*.AM?) music files from Xerix II.
Understand that the source code is in its original state,
and has not been perfectly tidied up. This is to show just what
the code looks like after extensive development and testing.
Extensive documentation of each module is not included; instead
programmers can explore the code themselves to see how it works.
Programming experience is presumed - the Source Code Package will
not serve as a tutorial in programming.
This Source Code Package is intended for individual users
only. Contact Twilight Software for inquiries on Site Licenses
for the Xerix II Source Code Package.
---- The following auxiliary files are included:
[...Note that auxiliary files are included only for the
ShareWare edition's levels (the first 6) - so only the
ShareWare edition of Xerix II can be rebuilt from the
Source Code Package...]
For each ShareWare level (00-05):
level??.h - all data structures describing a level.
These are .h files using filled data
structures which describe backings,
aliens and so on.
(Several thousand lines in total!)
leveldat.0?? - data file made for above .h file by MAKLEV
levbacka.0?? - first Fastgraph .SPR image for scenery
levbackb.0?? - second Fastgraph .SPR image for scenery
alienspr.0?? - .SPR image of alien sprites (2 main sets)
ship_spr.0?? - .SPR image of ship sprites (1 image set)
shot_spr.0?? - .SPR image of shot sprites (1 image set)
bonusspr.0?? - .SPR image of bonus module sprites (1 set)
Note that some images, such as bonusspr.0??, are reused for
most or all levels.
Also note that the above files may NOT be reused in your
own programs.
Also included:
.SAM files: audio sample files for in-game sound effects
Note that these sounds may NOT be reused in your own
programs.
.SPR files: (Fastgraph .SPR image files, all 320x200x256)
twilogo.spr - Twilight Software logo
seqbck?.spr - set of sequence backing images
font0.spr - thin font
font1.spr - thick font
title.spr - XERIX II title sprite
fontgame.spr - in-game font set for scores etc.
Note that with the exception of font0.spr and
font1.spr, these files may NOT be reused in your own
programs.
.SEQ files: special sequence files, built with MAKESEQ.PRJ.
.AM1 files: (10 of DSMI's AMF music files)
Note that none of these songs may be used in your own
programs. They may not be distributed in any way.
If you wish to purchase the Xerix II Source Code Package,
print the Order Form (below) and fill it in. Send it to the
address given, along with payment for $89 Australian Dollars.
Make sure that payment is in Australian Currency.
...Cut here...
-----------------------------------------------------------------
Xerix II Source Code package Order Form
Please send me the entire Xerix II Source Code Package on 3.5"
disk. By ordering this product I understand that I may not
distribute any of the files in this package under any
circumstances, except for those files which are linked in to my
own executable programs. I understand that I may only link in
those files which are specifically stated as being usable in my
own programs in the X2SRC.DOC file. I will not hold Brendan
Reville or his representatives responsible for any damages which
may be caused by using the contents of this package. I also
understand that the software remains the property of Brendan
Reville, and that no warranty is given as to the fitness of the
Source Package for any purpose (hence no refunds are available).
I enclose payment (not cash) for $89 Australian Dollars, in
Australian Currency.
Signed: ______________________ Date: _________________
(in date/month/year format)
Legal requirements aside, I do want to receive all of Brendan
Reville's source code for Xerix II, as well as all the auxiliary
files, to see just how a real game works! Please send it all
(including a Registered edition of Xerix II) to me at:
Name: ___________________________________
Address: _______________________________
_______________________________
_______________________________
Country: _______________________________
Phone number: _____________________ (include international codes)
Post this form to: Twilight Software
PO Box 304
Milsons Point NSW 2061
Australia
-----------------------------------------------------------------