C Gamedev

Open-source C projects categorized as Gamedev

Top 23 C Gamedev Projects

  • raylib

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

    Project mention: I'm new to C/C++, how do I start a new raylib project? | /r/raylib | 2023-09-19

    How does it work for C/C++? I looked around and it seems there are no official package managers. Raylib's official website points us to these examples but they're just a file, obviously just a file on a separate folder wouldn't work, would it? I've gone through these steps to compile raylib on my system, but how do I start a new project? Do I just run cmake on this file and it knows where raylib is and compiles the binary correctly?

  • 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 want to make a game but I'm scared... | /r/gamedev | 2023-09-15

    pygame never used it, but its popular python library, heard good things about it. i suggest if you are not trying to make resource intensive game, and you want to learn python which is a really valuable skill.

  • Mergify

    Tired of breaking your main and manually rebasing outdated pull requests?. Managing outdated pull requests is time-consuming. Mergify's Merge Queue automates your pull request management & merging. It's fully integrated to GitHub & coordinated with any CI. Start focusing on code. Try Mergify for free.

  • GameNetworkingResources

    A Curated List of Game Network Programming Resources

    Project mention: A Curated List of Game Network Programming Resources | news.ycombinator.com | 2023-05-22
  • flecs

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

    Project mention: Introducing Ecsact | dev.to | 2023-06-24

    Since we wanted a common game simulation that would be on both the server and the client we looked into a few libraries that would fit our ECS needs. It was decided we were going to write this common part of our game in C++, but rust was considered. C++ was a familiar language for us so naturally EnTT and flecs came up right away. I had used EnTT before, writing some small demo projects, so our choice was made based on familiarity. In order to integrate with Unity we created a small C interface to communicate between our simulation code and Unity’s C#. Here’s close to what it looked like. I removed some parts for brevity sake.

  • TIC-80

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

    Project mention: LÖVE: a framework to make 2D games in Lua | news.ycombinator.com | 2023-09-13

    Main differences are: 16:9 aspect ratio, no cpu limits and many languages to tinker with: lua, js, squirrel, wren, janet, wasm, ... and just recently - a Python support was added.


  • Open-Golf

    A cross-platform minigolf game written in C.

    Project mention: Advice for bigger c projects? | /r/C_Programming | 2023-05-30
  • zig-gamedev

    Building game development ecosystem for @ziglang!

    Project mention: Zig for gamedev? | /r/Zig | 2023-04-15

    Two game frameworks in the making: https://github.com/michal-z/zig-gamedev & https://github.com/hexops/mach

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • lovr

    Lua Virtual Reality Framework

    Project mention: LÖVE: a framework to make 2D games in Lua | news.ycombinator.com | 2023-09-13
  • glfw

    Go bindings for GLFW 3 (by go-gl)

  • space-shooter.c

    A cross-platform, top-down 2D space shooter written in C using only platform libraries.

    Project mention: Advice for bigger c projects? | /r/C_Programming | 2023-05-30
  • librg

    🚀 Making multi-player gamedev simpler since 2017

    Project mention: Multiplayer Networking Solutions | /r/gamedev | 2022-10-06

    LibRG is an open-source, C99 header-only that handles actor relevancy, similar to Unreals Actor Relevancy Graph.

  • rgbds

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

    Project mention: Game Boy Competition 2023 | /r/Gameboy | 2023-05-29

    This is a game jam where you make a Game Boy game in three months. If you don't know a lot of programming you can use GB Studio, you can learn the nitty gritty of how the Game Boy works by using assembly programming with RGBDS, or you can use C with GBDK or ZGB.

  • IconFontCppHeaders

    C and C++ headers, C# and Python classes, Rust files and Go package for icon fonts Font Awesome, Fork Awesome, Google Material Design, Pictogrammers Material Design icons, Kenney game icons, Fontaudio and Codicons.

    Project mention: Loading an icon font does not work in Dear ImGui! | /r/gameenginedevs | 2023-01-06

    I am using C# and Silk.NET, which uses ImGuiNET for ImGui. I got the icon fonts and "header" files from https://github.com/juliettef/IconFontCppHeaders

  • dxwrapper

    Fixes compatibility issues with older games running on Windows 10 by wrapping DirectX dlls. Also allows loading custom libraries with the file extension .asi into game processes.

    Project mention: SimCity Classic - Guide to Installation (Windows / DOSBox) | /r/SimCity | 2023-07-08

    Then, download this and place the files inside the game directory (C:\Program Files\Maxis\SimCity Classic).

  • foolrenderer

    A tiny software renderer implemented from scratch without the use of graphics API, used to understand how GPUs work.

  • ENet-CSharp

    Reliable UDP networking library

  • EsenthelEngine

    The Most Powerful Game Engine in the World

  • bake

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

  • 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: Should there be an open-source FTL clone? Can one even exist? | /r/ftlgame | 2023-08-29

    Open Hexagon, re-implementation of Super Hexagon

  • dethrace

    Reverse engineering the 1997 game "Carmageddon"

    Project mention: GitHub - dethrace-labs/dethrace: Reverse engineering the 1997 game "Carmageddon" | /r/Games | 2023-05-08
  • exengine

    A C99 3D game engine

  • pygame-ce

    🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.

    Project mention: How can I optimize projects made with Pygame? | /r/pygame | 2023-07-01

    See our release notes for full information about what's new: https://github.com/pygame-community/pygame-ce/releases

  • dome

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

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

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 2023-09-19.

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 15,303
2 Pygame 6,331
3 GameNetworkingResources 6,134
4 flecs 4,727
5 TIC-80 4,285
6 Open-Golf 1,686
7 zig-gamedev 1,651
8 lovr 1,566
9 glfw 1,433
10 space-shooter.c 1,304
11 librg 1,138
12 rgbds 1,132
13 IconFontCppHeaders 975
14 dxwrapper 938
15 foolrenderer 772
16 ENet-CSharp 698
17 EsenthelEngine 642
18 bake 600
19 SSVOpenHexagon 586
20 dethrace 546
21 exengine 507
22 pygame-ce 465
23 dome 442
Collect and Analyze Billions of Data Points in Real Time
Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.