Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
chess
-
Quite OK Image is now my favorite asset format
I think it's in the title: assets. The example case is replacing the BMP assets used by a game with QOI with a resulting 10x size reduction: https://github.com/skeeto/chess/commit/5c123b3
I think this functions as a test case. For a game as simple as a chess UI, PNG would probably be fine unless you're code-golfing on the final output binary or refusing to use common dependencies. But for some programs (e.g. large video games), preloading all your assets is very common and decoding speed can be crucial. Maybe the assets could even be left in compressed form in memory in order to reduce the system requirements? I'm not sure if this is common or not.
-
Is there a way to embed textual data in the binary and then free it when you need?
However, I don't really like the constraints this imposes, so I prefer my #include trick. In real programs I don't actually rely on xxd (part of Vim), and instead write a custom embed tool as part of the build. It's only a few lines of code to match the standard input behavior of xxd.
-
Looking for feedback on my Chess game
https://github.com/skeeto/chess/commit/9cc8c60 (depends on Vim xxd)
chess
-
I think I am ready for the next step - a visual program. Can you give me the rundown?
If you want to go without libraries, it's not that hard. Just more tedious. Xlib and Windows APIs are not that fun to work with. Xlib is not documented all that well. Windows has good documentation but you're filling out giant structs for days. I've done it just for learning purposed (see this chess game I made if you're interested: https://github.com/weirddan455/chess has Xlib and Windows support.) On Linux, you may also want to look into Wayland. I haven't done that personally because I don't use it on my machine but that's another implementation you get "for free" by using SDL.
-
XCreateImage and XPutImage don't render anything when given the infomation from a buffer.
If it helps, you can look at my chess game where I wrote Xlib code doing this: https://github.com/weirddan455/chess
-
Looking for feedback on my Chess game
GitHub Link: https://github.com/weirddan455/chess
-
Help with minmax algorithm
Full source code is here if anyone is curious (it's in src/game.c around line 850): https://github.com/weirddan455/chess
What are some alternatives?
EightThirtyTwoDemos - Demo projects for the EightThirtyTwo CPU
nuklear - A single-header ANSI C immediate mode cross-platform GUI library
libdeflate - Heavily optimized library for DEFLATE/zlib/gzip compression and decompression
LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
CompactGUI - Transparently compress active games and programs using Windows 10/11 APIs
qoipond - Lossless image format inspired by QOI “Quite OK Image” format
Zpng - Better lossless compression than PNG with a simpler algorithm