https://github.com/pixelcmtd/ccr2d1
CConsoleRetro2D, a multi-threaded C console 2D GFX and input library.
https://github.com/pixelcmtd/ccr2d1
Last synced: 3 months ago
JSON representation
CConsoleRetro2D, a multi-threaded C console 2D GFX and input library.
- Host: GitHub
- URL: https://github.com/pixelcmtd/ccr2d1
- Owner: pixelcmtd
- License: gpl-3.0
- Created: 2018-10-05T13:40:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-08-11T13:23:18.000Z (almost 4 years ago)
- Last Synced: 2025-01-17T19:49:40.617Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 1.49 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CCR2D1 [](https://github.com/pixelcmtd/CCR2D1)
CConsoleRetro2D version 1 - A C library for NES/GB-like games in the console
## Disclaimer
This library is not production ready, it's still full of bugs.
## Sample code
```c
#include "ccr2d.h"
int main()
{
//temporaryly allocate the background on the stack
pixel bck[70 * 28];
//initialize the background empty
pxlarr(70, 28, bck);
//create new CCR2D v1 object
ccr2d1 *obj = c2dnew(bck, 70, 28, 10);
//start rendering and drawing
c2dstart(obj);
//don't do anything else until the user kills the process
while(1) sleep_ms(1000);
}
```