Contents

CaveRace

CaveRace is a classic maze-based video game I developed back in 1997 with some other students. Inspired on a game, I played on my Commodore Amiga, called Dyna Blaster (Bomberman).

Forest levelWinter levelLava level
/caverace/demo1.png/caverace/demo2.png/caverace/demo3.png

Download

You can download the 16-bit MS-DOS version of CaveRace (version 1.2) here.

Story

On the planed Eldora, there are miners collecting gold and diamonds. When the miners get unexpected visitors from outer space, the mining of precious minerals is in danger. The only defense the miners have is their explosions to make a way inside the mines and caves. CaveRace is a game where you collect as much as possible precious minerals and destroy all alien visitors.

Planed EldoraCollect treasureAlien visitors
/caverace/eldora.png/caverace/treasure.png/caverace/alien.png

Borland C

The game is mainly written in the programming language Borland C 3.1, and some graphic routines are in x68 assembly language. The minimal system requirements are an Intel 80386 IBM compatible PC running MS-DOS and VGA 320×200 pixels (Mode 13h) in 256-color mode video system.

The game is using your mouse and keyboard for navigation and gameplay. The game loop is in sync with the refresh rate of the screen, not the best choice, but simple to understand. No sound is present in the MS-DOS version, later on, I ported CaveRace to Windows, this version has upgraded graphics and sounds (explosions).

There is also a MapEditor available to create levels yourselves. Let me know what you have created.

Graphics

The original artwork is created on an Amiga using Deluxe Paint in the file format IFF (Interchange File Format). The game CaveRace is using a binary RGB byte file format. Game tiles (16 x 16 pixels) and screens (320 x 200 pixels) are converted to this binary RGB byte file format.

FileTilesBytesDescription
BGS5 x 50(16x16)64000BackGrounds
BOM17 x (16x16)4352Boms
CAR320 x 20064000Carder (Picture)
ENM16 x (16x16)4096Enemys
FNT36 x (3x5)540Font
HIS320 x 20064000Hi-Scores (Picture)
ITM13 x (16x16)3328Items
MAN18 x (16x16)4608Man
MN1320 x 20064000Menu 1 (Picture)
MN2320 x 20064000Menu 2 (Picture)
PAL256 x (RGB)768Palette
STS4 x (16x16)1024Status
TRS6 x (16x16)1536Treacure

Game cheats

Start the game using the switch -powerblast, and now you can use the function keys for additional power.

KeyResult
F1next level
F2max. health
F3max. bombs
F4more bomb power
F5double points
1screen capture, output is saved to the file screen.raw
%shows the rendering time

When running the game on old and slow systems, you can use the -slow switch to speed up the game.

Open Source

The MS-DOS version of CaveRace is opensource under the Apache-2.0 license and can found op GitHub.

CaveRace for Windows

There is also a Microsoft Windows and Windows Phone 7 version of CaveRace. Written in C# and using DirectX graphics. More information about how I ported the C version to C# in an upcoming blog post.

Desert & Lava levelsForest & Winter level
/caverace/desert.jpg/caverace/forest.jpg
/caverace/lava.jpg/caverace/winter.jpg