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...

Also available for download are the associated KEYLIB keyboard and SPKLIB sound libraries; typically these three libraries are used together for games.

Download the binary packages if you want to develop games using the libraries, or if you just want to play the sample game. Download the source code if you want to make a custom version of the libraries, or to port them to another C compiler, or if you just want to see how they work.

Updated 6 days ago
StatusReleased
CategoryTool
AuthorCyningstan
Tags2D, c, cga, DOS, graphics, library, programming, Turn-based

Download

Download NowName your own price

Click download now to get access to the following files:

CGALIB 1 Binaries for OpenWatcom C 99 kB
KEYLIB Binaries for OpenWatcom C 19 kB
SPKLIB Binaries for OpenWatcom C 260 kB
CGALIB 1 Source Code for OpenWatcom C 71 kB
KEYLIB Source Code for OpenWatcom C 9.6 kB
SPKLIB Source Code for OpenWatcom C 18 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.