C Gamedev

Open-source C projects categorized as Gamedev Edit details

Top 23 C Gamedev Projects

  • raylib

    A simple and easy-to-use library to enjoy videogames programming

    Project mention: C++ packages/libraries with github | reddit.com/r/cpp | 2022-06-22

    Raylib has an example CMakeLists.txt that you can copy for your own project, see here.

  • Pygame

    pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.

    Project mention: I’m 13 and trying to learn python. | reddit.com/r/learnpython | 2022-06-23

    If you are into games, PyGame could be your choice for 2d traditional-looking ones, but there are also some that allow you to word in 3d environment.

  • JetBrains

    Developer Ecosystem Survey 2022. Take part in the Developer Ecosystem Survey 2022 by JetBrains and get a chance to win a Macbook, a Nvidia graphics card, or other prizes. We’ll create an infographic full of stats, and you’ll get personalized results so you can compare yourself with other developers.

  • GameNetworkingResources

    A Curated List of Game Network Programming Resources

    Project mention: How often should i send packets of data to the server/client? | reddit.com/r/networking | 2022-06-16

    Check these articles here to learn how game netcode works. The answer to your question (and a lot more) will come naturally after a bit of reading. https://github.com/ThusWroteNomad/GameNetworkingResources

  • TIC-80

    TIC-80 is a fantasy computer for making, playing and sharing tiny games.

    Project mention: Show HN: Akedo – Retro gaming and coding platform | news.ycombinator.com | 2022-06-21
  • flecs

    A fast entity component system (ECS) for C & C++

    Project mention: ECS question | reddit.com/r/gameenginedevs | 2022-06-03

    Here's a link to a working code example.

  • Open-Golf

    A cross-platform minigolf game written in C.

    Project mention: ⟳ 5 apps added, 51 updated at f-droid.org | reddit.com/r/FDroidUpdates | 2022-06-10

    Open Golf: A mini golf game currently featuring about 20 levels

  • lovr

    Lua Virtual Reality Engine

    Project mention: Trying to learn game development so I need to learn coding, am I learning wrong? | reddit.com/r/gamedev | 2022-05-28

    C# is about as object-oriented as a programming language can get. The object-oriented paradigm is unintuitive and is easy for both beginners and experts to produce bad code in. If you're just starting out, I'd recommend working with a more procedural programming language such as Lua (LOVE2D, LÖVR, Defold). Once you've got that down, C# will be a bit easier to handle.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • glfw

    Go bindings for GLFW 3 (by go-gl)

    Project mention: What libraries would allow drawing windowless overlays? | reddit.com/r/golang | 2021-08-31
  • rgbds

    Rednex Game Boy Development System - An assembly toolchain for the Nintendo Game Boy & Game Boy Color

    Project mention: Errors Building Anniversary Red | reddit.com/r/twitchplayspokemon | 2022-06-04

    Clone the specific version of rgbds we need (0.2.0 and 0.2.1 had segfaults on linking, but 0.2.2 seems to work just fine) git clone -b v0.2.2 https://github.com/gbdev/rgbds.git cd rgbds make cd ..

  • ENet-CSharp

    Reliable UDP networking library

    Project mention: Worried about server security and seperation with Mirror Networking | reddit.com/r/Unity3D | 2022-02-14

    You definitely want to a low level API (LLAPI) instead, like f.ex. LiteNetLib, ENet, lidgren or similar. I haven't touched anyone of these recently, except the first one a year-ish ago, so I won't say anything about where they stand today.

  • bake

    A build system that lets you clone, build and run C/C++ projects with a single command (by SanderMertens)

    Project mention: Chalet: A cross-platform project format & build tool for C/C++ | reddit.com/r/programming | 2022-06-09

    I agree in case of cmake, but not in case of e.g. meson (or all other build systems the specification files of which are not scripts). But we also have to keep in mind that JSON is just the basic syntax, but the interesting stuff is built on top; it's like XML, which - as we know - can quickly become human unreadable and complex; JSON has simpler constructs than XML of course, but what you do with JSON is even though subject to specific usability assessment; a specification language is not automatically more usable because it is based on JSON. And also the other contemporary build systems abstract e.g. compiler differences away. I would compare your approach to e.g. Qbs or https://github.com/SanderMertens/bake.

  • SSVOpenHexagon

    C++20 FOSS clone of "Super Hexagon". Depends on SSVStart, SSVEntitySystem, SSVLuaWrapper, SSVMenuSystem, JSONcpp, SFML2.0. Features JSON/LUA customizable game files, a soundtrack by BOSSFIGHT, pseudo-3D effects.

    Project mention: Ask HN: Favourite Open Source Game? | news.ycombinator.com | 2022-06-01


    Space Station 13 (and the remake, SS14) is an incredibly unique and feature rich multiplayer role playing game that takes place on a rickety space station in a wacky retro-futuristic setting. It's hard to recommend this game as the learning curve is more like a cliff, but it is far and away the best game that exists for creating unique (and often very funny) stories in. It has a long and complicated open source history that has fragmented it into several unique popular forks, but the most popular one that's fully open source nowadays is tgstation.

  • exengine

    A C99 3D game engine

  • EsenthelEngine

    The Most Powerful, Free and Open Source Game Engine in the World

    Project mention: Kickstarter - Into The Dark - Action-Oriented Dungeon Crawler RPG | reddit.com/r/gamedev | 2022-03-19

    Powered by my Titan Game Engine - https://esenthel.com/

  • dome

    A lightweight game development environment where games can be written in Wren

    Project mention: DOME v1.7.0 - The Useful Utilities Edition - has now released! | reddit.com/r/wren_lang | 2021-12-08
  • raylib-games

    A collection of games made with raylib

    Project mention: how to make a collision in all directions, and make the player stop and not break through the wall? | reddit.com/r/raylib | 2021-08-24

    Damn, I found a pretty serious bug there, so it's better to reference the old one for now. https://github.com/raysan5/raylib-games/blob/master/classics/src/platformer.c

  • FNA3D

    FNA3D - 3D Graphics Library for FNA

    Project mention: Trying to get Terraria to work ( efficiently ) | reddit.com/r/linux_gaming | 2021-11-07

    Clone the GitHub repo I linked (git clone --recursive https://github.com/FNA-XNA/FNA3D) and follow the instructions given in the README on how to build it (you will need to have git, cmake, make, and the the development libs of SDL2 installed).

  • dethrace

    Reverse engineering the 1997 game "Carmageddon"

    Project mention: Dethrace: open source re-implementation of Carmageddon '97 game engine | reddit.com/r/Games | 2022-05-25
  • SDL.zig

    A shallow wrapper around SDL that provides object API and error handling

    Project mention: Is there a way to build Zig libraries to be used by Zig instead of as C libraries? | reddit.com/r/Zig | 2022-05-30
  • OpenHSP

    Hot Soup Processor (HSP3)

    Project mention: OpenHSP (HSP3): BASIC like scripting language for games and other programs | news.ycombinator.com | 2022-06-09
  • dds-ktx

    Single header KTX/DDS reader

    Project mention: Tools for rolling your own engine | reddit.com/r/gamedev | 2022-05-16

    dds_ktx is a pretty tiny lib for reading DDS and KTX files easily

  • ENet-CSharp

    A improved fork of ENet, a tried and true networking library. C, C++, C# compatible. (by SoftwareGuy)

    Project mention: Godot Modules - Dev Blog #1 (My journey with multiplayer so far) | reddit.com/r/opensourcegames | 2022-05-03

    Making games isn't an easy thing to do, this is especially true for multiplayer games. Ever since I was 12 years old I wanted to make the ultimate multiplayer game. I first started getting into networking through GameMaker studio engine. I would watch tutorials online, try to understand them and end up just copying code for code. Later on I discovered Unity's Low-Level Multiplayer API (LLMAPI) and it was horrendous to get working. Not to mention the documentation for it was even more horrendous. Then much later I discovered [ENet-CSharp](https://github.com/SoftwareGuy/ENet-CSharp) and fell in love with its [simple approach](https://github.com/SoftwareGuy/ENet-CSharp/blob/master/QUICKSTART-EXAMPLES.md). I later found out that I could just add nuget packages to the .csproj file of Godot Modules project and bam I'm using Godot C# + ENet-CSharp. This is great because I'm super comfortable with the C# language.

  • raylib-hx

    Haxe bindings for raylib, a simple and easy-to-use library to learn videogame programming

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-06-23.

C Gamedev related posts


What are some of the best open-source Gamedev projects in C? This list will help you:

Project Stars
1 raylib 9,864
2 Pygame 4,890
3 GameNetworkingResources 4,766
4 TIC-80 3,471
5 flecs 2,753
6 Open-Golf 1,578
7 lovr 1,355
8 glfw 1,273
9 rgbds 968
10 ENet-CSharp 619
11 bake 513
12 SSVOpenHexagon 508
13 exengine 452
14 EsenthelEngine 420
15 dome 401
16 raylib-games 197
17 FNA3D 178
18 dethrace 129
19 SDL.zig 123
20 OpenHSP 121
21 dds-ktx 83
22 ENet-CSharp 60
23 raylib-hx 28
Find remote jobs at our new job board 99remotejobs.com. There are 4 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.