#cgalib
Today I've made the second version of #cgalib available. CGALIB 2 now includes support for keyboard input, and sound effects and music, making it a general #gamedev library for #msdos systems with #cga graphics and #pcspeaker sound. You can download it from cyningstan.itch.io/cgalib2
CGALIB 2 by Cyningstan
A game library for retro game development.
cyningstan.itch.io
September 26, 2025 at 3:09 PM
The CGALIB music editor is still a work in progress, but I'm looking forward to using it for my #DOSember game jam entry. Transcribing sheet music into this will be a lot easier than typing a bunch of numbers in a text file, like I did with my previous projects.
September 20, 2025 at 11:17 AM
320x200 (CGA). The fonts are 4x8, so they'd be useful as 64 column text in a Speccy game too. I've got one for future settings, one for present and one for past. Feel free to copy them from CGALIB if you'd find them useful - dos.cyningstan.org.uk/downloads/55...
CGALIB Graphics Library | Cyningstan DOS Games
dos.cyningstan.org.uk
February 15, 2025 at 3:47 PM
I'm spending my first day of the year compiling up SDL2 from sources. I've I'm going to get CGALIB working properly on a modern OS I'm going to need features not included in the pre-packaged version of SDL2...
January 1, 2024 at 2:53 PM
Behind the scenes, I've been playing with the SDL2 graphics library, with a view to integrating it with CGALIB. This will hopefully help with development and debugging, and also more exciting ouctomes. More about it all here: dos.cyningstan.org.uk/post/227/a-f...
December 17, 2023 at 6:29 PM
CGALIB is the simple graphics library that my DOS games are based on. It's designed for tile based games in CGA's 320x200 graphics modes, and supports building up displays off-screen so that screen updates appear fast on slow machines. dos.cyningstan.org.uk/downloads/55...
October 5, 2023 at 5:13 PM
While creating a music editor for CGALIB, I noticed an error in the Star Cadre: Combat Class music that I hadn't noticed from listening (that bass B should be an E). #cga #pcspeaker
September 19, 2025 at 11:11 AM
I've now uploaded the version of CGALIB that supports Hercules graphics, as used in the recent Team Droid update. Read more in this blog post: dos.cyningstan.org.uk/post/250/cga...
January 21, 2024 at 5:57 PM
I put a blog post up today that looks back over my attempts to get my projects working under modern operating systems, and where those efforts led me. dos.cyningstan.org.uk/post/256/sdl...
January 28, 2024 at 2:04 PM
Thanks! It's one of the ones supplied free with CGALIB. I've used it with all my sci-fi games so far.
February 15, 2025 at 3:19 PM
I've retrofitted CGALIB with Hercules support to Barren Planet. The Hercules card is automatically detected, and the CGA graphics work nicely when scaled. I'm usually on Team Green, but amber works better for this game. This version will be available in the near future.
January 9, 2024 at 3:26 PM
I've been working on CGALIB this evening, adding internal support for Hercules graphics cards. Further tasks: auto-detect Hercules, so that all projects will work and not require some kind of Hercules command line switch.
January 8, 2024 at 12:15 AM