Graphics Library for CX16 C cc65 Projects
Posted: Tue Feb 06, 2024 11:34 pm
I'm happy to announce the release of the first version of my Xist16 graphics library for C projects on the Commander X16 using the cc65 compiler! It has built-in functions for:
* Loading and managing graphics
* Animated sprites
* Animated tiles
* Text-drawing functions
* Built-in PRNG that's fast, with good unpredictability and distribution, with a period of 65,536
I've applied performance optimizations and stress-tested it with 33 simultaneous animated sprites and hundreds of animated tiles without slowdown, so the performance seems adequate for producing some real games with it.
I've published it under the MIT license, so you can do whatever you want with it provided you give attribution and don't hold me liable if you somehow manage to blow yourself up with it
It's available for download here:
https://github.com/DoctorJWW/Xist16
Aside from the (thorough) documentation that comes with the Github repo, I also posted a tutorial video showing how to set it up and use its functions to quick-start your own C projects for the X16:
https://www.youtube.com/watch?v=0EhJtpzhRpA
I sincerely hope some folks get some good use out of this library. If you make anything cool with it, feel free to drop me a line.
Enjoy!
-Dr.J
* Loading and managing graphics
* Animated sprites
* Animated tiles
* Text-drawing functions
* Built-in PRNG that's fast, with good unpredictability and distribution, with a period of 65,536
I've applied performance optimizations and stress-tested it with 33 simultaneous animated sprites and hundreds of animated tiles without slowdown, so the performance seems adequate for producing some real games with it.
I've published it under the MIT license, so you can do whatever you want with it provided you give attribution and don't hold me liable if you somehow manage to blow yourself up with it
It's available for download here:
https://github.com/DoctorJWW/Xist16
Aside from the (thorough) documentation that comes with the Github repo, I also posted a tutorial video showing how to set it up and use its functions to quick-start your own C projects for the X16:
https://www.youtube.com/watch?v=0EhJtpzhRpA
I sincerely hope some folks get some good use out of this library. If you make anything cool with it, feel free to drop me a line.
Enjoy!
-Dr.J