A downloadable programming library

Download NowName your own price

CGALIB is a relatively fast, specialised C graphics library for DOS game development. It targets the CGA graphics adapter, specifically the 4-colour 320x200 CGA graphics modes, although it will also emulate these modes on the 640x200 screen using dithering, for clarity on monochrome devices. For speed it organises the screen into 4x2 pixel cells, making it more suitable for turn-based games than for action games that require pixel-perfect positioning.

The library includes a sample game, the classic Robot Chase game. Avoid the robots who relentlessly head towards you, and try to make them crash into each other in order to pass each level. You can teleport to another part of the arena to get out of trouble, but this results in a score penalty...

Download the binary package if you want to develop games using CGALIB, or if you just want to play the sample game. Download the source code if you want to make a custom version of the library, or to port it to another C compiler, or if you just want to see how it works.

Download

Download NowName your own price

Click download now to get access to the following files:

Source Code for OpenWatcom C 71 kB
Binaries for OpenWatcom C 99 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.