c_exceptional
pacman.c
c_exceptional | pacman.c | |
---|---|---|
3 | 3 | |
33 | 470 | |
- | - | |
0.0 | 5.2 | |
almost 6 years ago | 2 months ago | |
C++ | C | |
Apache License 2.0 | MIT License |
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.
c_exceptional
-
let me see what you are capable of creating
You can find the repository, including a brief explanation on how it works and links to more a in-depth explanation at Qqwy/c_exceptional.
-
Best C Marco Preprocessor Tutorial? (Book or Website)
Metaprogramming custom control structures in C is a very good resource. I used those techniques to for instance create a C99 exception library: exceptional.
-
What is your own favorite C project?
I made an exception library called exceptional with very intuitive syntax and semantics. It uses some crazy preprocessor tricks behind the scenes to make this work ☺️.
pacman.c
-
How to Pacman
Floooh's pacman.c is an outstanding one file implementation of Pacman in C. He uses his own very good libraries (called sokol) to do the graphics and audio but you can definitely learn a lot from reading the code. It is very accurate too - it's based off the Pacman Dossier (copy included).
-
What is your own favorite C project?
Some of my favorites are: sokol/pacman.c, Gunslinger, and gb
-
Zig in 30 Minutes
Not "serious" at all but I wrote a Pacman clone over the holidays as an excercise and test for my cross-platform C header bindinds:
https://github.com/floooh/pacman.zig
...and before that I did the same in C99 (might be useful for comparing the languages):
https://github.com/floooh/pacman.c
Disclaimer: I'm not a Zig expert at all, and the project doesn't really require most things where Zig differs from C. But I think writing small and "for-fun" projects like this is important for getting used to a language. I think one of Zig's big qualities is that it is so straightforward, after a few hundred lines you hardly have to look up things in the language documentation anymore.
What are some alternatives?
gunslinger - C99, header-only framework for games and multimedia applications
microui - A tiny immediate-mode UI library
pns
Simple-Socket-Library-2 - Another Simple Socket Library, but a little more intuitive, supports non-blocking IO and SSL.
sokol - minimal cross-platform standalone C headers
Neko-Application-Server-Library - A C++ library to allow a developer to easily add an HTTP server to their program.
astera - A C99 Cross Platform 2D Game Library
gb - gb single-file public domain libraries for C & C++
Simple-FTP-Client-Library - Add FTP functionality to your program