C Game development

Open-source C projects categorized as Game development

Top 23 C Game development 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

    Updating dependencies is time-consuming.. Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. 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.

  • netcode.io

    A protocol for secure client/server connections over UDP

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

    yojimbo/ netcode/ reliable, all developped by Glenn Fidler, author of GafferOnGames

  • ioq3

    The ioquake3 community effort to continue supporting/developing id's Quake III Arena

  • go-sdl2

    SDL2 binding for Go

    Project mention: C Port of Ken Thompson's Space Travel | news.ycombinator.com | 2023-02-05
  • SonarQube

    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.

  • 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

  • Allegro

    The official Allegro 5 git repository. Pull requests welcome!

    Project mention: Self taught developers, what did you know when you started? | /r/learnprogramming | 2023-05-18

    C, C++, Allegro, SDL, Some rudimentary SQL, Some basic BSD Sockets. But I also took some time to learn 3D math, trigonometry and linear algebra so I can include some basic 3D examples in my portfolio. I was later told that it was the 3D math that made the difference because if I (barely finished HS) can do that I can probably learn everything they give me.

  • soloud

    Free, easy, portable audio engine for games

  • SGDK

    SGDK - A free and open development kit for the Sega Mega Drive

    Project mention: iHaveNoReasonToDoThisOtherThanBraggingRights | /r/ProgrammerHumor | 2023-06-21
  • 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
  • raylib-go

    Go bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.

    Project mention: Raylib is a simple and easy-to-use library to enjoy videogames programming | news.ycombinator.com | 2023-07-04

    Raylib is awesome! It reminds me of the old school days of using BlitzBASIC to get things drawn on screen because it's easy and so much fun. This is how programming used to be, no fuss, just easy to use libraries.

    I currently use Raylib with Go and the Go bindings[1] to create screensavers for Linux and I'm really happy with the results.

    I even use it at work to draw interactive infrastructure diagrams that animate dependencies, allow controlling start-up etc. It's really flexible and simpler than anything else I've found to get stuff on-screen. I love it!

    [1]: https://github.com/gen2brain/raylib-go

  • HandmadeMath

    A simple math library for games and computer graphics. Compatible with both C and C++.

    Project mention: Trouble calculating projection matrix | /r/GraphicsProgramming | 2023-06-20

    If you don't like using heavy libraries such as glm, I recommend looking at HandmadeMath. It is a single file c/c++ math library for graphics programming. You can just drop it into your project. It's lightweight and will save you a lot of time implementing the math yourself. In a lot of cases, it actually uses optimized solutions to save computation time (same with the glm).

  • 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).

  • EsenthelEngine

    The Most Powerful Game Engine in the World

  • 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

  • Azul3D

    Azul3D - A 3D game engine written in Go! (by azul3d)

  • reliable

    A packet acknowledgement system for UDP

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

    yojimbo/ netcode/ reliable, all developped by Glenn Fidler, author of GafferOnGames

  • thirdroom

    Open, decentralised, immersive worlds built on Matrix

    Project mention: is there a 3D metaverse, of the fediverse? | /r/fediverse | 2023-06-07

    Not sure if Mozilla Hubs federates, but as already said, ThirdRoom is Matrix VRchat thing.

  • gideros

    Gideros Release version

  • etlegacy

    ET: Legacy is an open source project based on the code of Wolfenstein: Enemy Territory which was released in 2010 under the terms of the GPLv3 license.

    Project mention: I need a game like OW. | /r/Overwatch | 2023-06-08

    You could try Dirty Bomb or the classic Wolfenstein: Enemy Territory for some class-based objective shooters. Both are free to play.

  • 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 Game development related posts

Index

What are some of the best open-source Game development 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 netcode.io 2,304
6 ioq3 2,189
7 go-sdl2 2,028
8 Open-Golf 1,686
9 zig-gamedev 1,651
10 Allegro 1,651
11 soloud 1,544
12 SGDK 1,504
13 space-shooter.c 1,304
14 raylib-go 1,067
15 HandmadeMath 1,023
16 dxwrapper 938
17 EsenthelEngine 642
18 SSVOpenHexagon 586
19 Azul3D 583
20 reliable 545
21 thirdroom 529
22 gideros 522
23 etlegacy 471
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.
www.influxdata.com