Cyningstan DOS Games

Games for Early PCs

CGALIB 2 Released

CGALIB 2: Detail from the manual cover
CGALIB 2: Detail from the manual cover

Friday, 26th September 2025

The CGALIB 2 Game Library, the second version of my programming library for the 8088 with CGA graphics and PC speaker sound, has now been released. CGALIB 2 now includes its associated libraries, KEYLIB for reading the keyboard, and SPKLIB for playing sounds and music through the PC speaker.

This version of the library has been used to develop three of my latest games, Star Cadre: Combat Class, Pym's Daily Word Square Puzzle, and The Chambers Beneath. While I'd normally have released this after its first successful inclusion in a project, I hadn't at the time completed the documentation, or the improved asset generation utilities for sound effects and music.

Those wants have now been supplied, and the library is available for public use. It builds on the CGALIB 1 Graphics Library with the inclusion of the above mentioned features, and also with the addition of support for fonts in sizes other than 4x8, the addition of a finer drawing grid of 4x1 instead of 4x2 pixels, an automatic back buffer for screen output, and numerous other functions.

Download the library and its documentation either from here or from the CGALIB 2 project page.

CGALIB 2 Binaries

Download: cgalib2.zip
Size 240kb, downloads 4.

This is the CGALIB 2 binary distribution. Download this if you want to create your own projects based on CGALIB 2. (read more...)

CGALIB 2 Source Code

Download: cgasrc2.zip
Size 74kb, downloads 5.

This is the source code distribution for CGALIB, useful for seeing how CGALIB works or porting it to other compilers. (read more...)

CGALIB 2 Manual

Download: cgalib-manual.pdf
Size 755kb, downloads 4.

This is the full PDF manual for CGALIB 2. It includes an introduction, references for all the different modules, and a description of the asset generation utilities. There is plenty of sample code to illustrate the use of CGALIB 2's functions. (read more...)

Comments

New Comment

Yes No