Game Programming Libraries
Want to develop your own MS-DOS games? This page is here to help you. All of the reusable code libraries for the Cyningstan DOS Games will be offered here for download.
CGALIB 1 Graphics Library
Some of the games on this site are based on the CGALIB 1 graphics library. CGALIB 1 is a relatively fast, specialised C graphics library. 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 ... (read more...)
KEYLIB Keyboard Library
Some of the games on this site use KEYLIB as their keyboard input library. KEYLIB is a small, simple library for reading a standard IBM PC/XT/AT keyboard. As well as the usual ASCII keypress functions, it allows scanning any key by scancode to check its key up/key down status. This means you can use it to check for shift keys used alone, or combinations of non-shift keys. KEYLIB is provided in source and binary formats for the OpenWatcom ... (read more...)
SPKLIB Sound Library
Some of the games on this site use SPKLIB as their sound library. SPKLIB is a small, simple library for music and sound effects throught the PC speaker. A variety of sound effects can be constructed, and music is played staccato so that something resembling harmony can be achieved using arpeggios or rapidly-played notes. SPKLIB is provided in source and binary formats for the OpenWatcom C compiler. It contains a couple of simple utility programs, and full documentation. ... (read more...)
CGALIB 2 Game Library
All of the games on this site since Star Cadre: Combat Class are based on the CGALIB 2 game library. CGALIB 2 is a collection of libraries, including a relatively fast, specialised C graphics library, a keyboard library, and a sound library. For graphics 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 ... (read more...)
LevelMap Level Generator Library
LevelMap is a simple C library for generating small dungeons and similar levels for turn-based games. Features include the ability set dimensions of the maps or leave them random, generation of both rooms and corridors, and if desired, connected textures. Levels can be up to 256 blocks in size, of dimensions anywhere from 28x9 through 16x16 to 9x28. LevelMap does not directly handle the graphics, but does generate the data, including what is needed to show connected textures. ... (read more...)
Comments