|
CDM
v0.9
Console Draw Motor, C librarly for quickly developing Windows console applications with advanced graphics. https://github.com/komo97/CDM
|
Library for creating 2D Games for the Windows CMD. For exclusive use with Windows. Not compatible for versions lower than Windows vista. This library only provides the C functions for drawing on the console, and the structures for its usage. For a Full HD device the maximum screen size is 237x124 using the terminal font and an 8x8 pixel per tile, or 479x168 using the same font but 4x6 pixels per tile.
Installing CDM is pretty straightforward, you can either download the compiled binaries and header file from my github on the releases section and use them inside Visual Studio 2017 or compile them yourself for your version of preference. Keep in mind that most defines included inside windows.h are not assured to be declared in vs-tools' versions prior to v141, you may have to define them yourself.
Usage of CDM is extremely simple, just create a CDMContext using CDMCreateContext, after that you can either change the font size and resize your window, change the title of your window or create a surface and start drawing. Keep in mind, inside your main loop, CDMPollEvents should not have anything running before it, and for optimization purposes CDMDraw should only be called once at the end of your loop.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: