C++ Games

Open-source C++ projects categorized as Games

Top 23 C++ Game Projects

  • SFML

    Simple and Fast Multimedia Library

    Project mention: Thoughts on SFML for a graphical library? | reddit.com/r/cpp_questions | 2023-03-22

    SFML 3 would be nice to have. Whenever they get around to it. It's seems they recently closed this project tracker thing: https://github.com/SFML/SFML/projects/7

  • Minetest

    Minetest is an open source voxel game engine with easy modding and game creation

    Project mention: function request | reddit.com/r/Minetest | 2023-03-18

    Hello. Feature requests and bug reports should be posted on Minetest's issue tracker on GitHub.

  • Sonar

    Write Clean C++ Code. Always.. Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • EA Standard Template Library

    EASTL stands for Electronic Arts Standard Template Library. It is an extensive and robust implementation that has an emphasis on high performance.

    Project mention: Are there any books or tutorials that teach C-Styled C++? | reddit.com/r/cpp_questions | 2023-02-26

    For games focused stuff have a look at EASTL https://github.com/electronicarts/EASTL also perhaps some of the Data Oriented Design stuff (see Mike Acton's CPP Con Talks). This also have loads of good stuff https://www.dataorienteddesign.com/dodbook/

  • wesnoth

    An open source, turn-based strategy game with a high fantasy theme.

    Project mention: Is there a list of secrets for each campain? | reddit.com/r/wesnoth | 2023-03-23

    When I want to know what secrets a scenario has without actually finding them in-game I usually open Wesnoth's source code on github, open directory data/campaigns//scenarios/ and in each scenario file look for [event] . Usually, it is not hard to guess what the code there means.

  • open_spiel

    OpenSpiel is a collection of environments and algorithms for research in general reinforcement learning and search/planning in games.

    Project mention: How to deal with situations where the RL agent cannot act at every time step? | reddit.com/r/reinforcementlearning | 2023-03-21

    I've had some success using Action Masking - you can refer to here https://github.com/deepmind/open_spiel/blob/120420a74a69354d64c10b51cd129d4587f9f325/open_spiel/python/algorithms/dqn.py but for DQN you need to mask out q values for invalid actions (as well as masking them during prediction). In my case I'm able to place my mask in the observation so can fetch it quite easily during prediction but if that's not possible you could query it from the environment and store it in the replay buffer (like they do in the link I shared)

  • warzone2100

    Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+

    Project mention: Hello everyone, there are people who understand where to find the game engine in warzone 2100? | reddit.com/r/warzone2100 | 2023-03-14

    Here you go: https://github.com/Warzone2100/warzone2100/blob/master/doc/Scripting.md

  • Teeworlds

    A retro multiplayer shooter

    Project mention: This open source game is being marked as proprietary | reddit.com/r/Fedora | 2023-03-05

    It's a modied bsd license from what I see. https://github.com/teeworlds/teeworlds/blob/master/license.txt

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • BehaviorTree.CPP

    Behavior Trees Library in C++. Batteries included.

    Project mention: ROS2 task/schedule/statemachine discussion | reddit.com/r/ROS | 2022-10-29

    Have a look at Behavior Trees, especially the BehaviorTreeCpp library https://www.behaviortree.dev The method is simple to understand, scales better than State Machines and if you implement the actions well they’re inherently modular. Nav2 uses them, and also BostonDynamics in their Spot SDK.

  • supertux

    SuperTux source code

  • Textractor

    Extracts text from video games and visual novels. Highly extensible.

    Project mention: Subahibi Japanese Text | reddit.com/r/subahibi | 2023-02-15

    Use Textractor to extract Japanese text from the game so you can look up what certain words/phrases mean.

  • TrenchBroom

    Cross-Platform Level Editor

    Project mention: I can't download Trenchroom | reddit.com/r/quake | 2022-11-11
  • antimicrox

    Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support.

    Project mention: Is it possible to map an input to multiple buttons? | reddit.com/r/fightcade | 2023-03-24

    By 'no', I mean not directly in the emulator. You could probably use another piece of software to map both dpad and stick to keyboard keys, and then bind the keyboard keys in the emulator itself, but that would require additional software such as antimicrox

  • EKA2L1

    A Symbian OS/N-Gage emulator

    Project mention: when did we start pretendig we all played arena and daggerfall? | reddit.com/r/TrueSTL | 2023-02-23

    The EKA2L1 emulator came out more recently so now you can play actual N-Gage games. There’s an UESP guide for getting set up with it which worked for me when I tried it, but idk if it’s been updated or needs updates though. You’ll want to check out these files as well.

  • d912pxy

    DirectX9 to DirectX12 API proxy for Guild Wars 2

    Project mention: The game feels well optimized nowadays | reddit.com/r/Guildwars2 | 2023-01-16

    I think the 5900 is holding you back. I have 5800x3d and in dragons end FPS stays over 60 most of the time. I also use dx12 API proxy: https://github.com/megai2/d912pxy

  • dosbox-staging

    DOSBox Staging is a modern continuation of DOSBox with advanced features and current development practices.

    Project mention: what the actual... | reddit.com/r/pcmasterrace | 2023-03-14
  • pegasus-frontend

    A cross platform, customizable graphical frontend for launching emulators and managing your game collection.

    Project mention: Is using unity to create an emulation front end a good idea? | reddit.com/r/Unity3D | 2023-03-13

    I'm looking to create an emulation front-end (like Launchbox, Playnite, and Pegasus) using neo4j to store relationships between items (games, platforms, developers ect.). I've built myself a starting point in Java using JavaFX, but after trying to display items I'm starting to experience the limitations of that. I'm wondering if it might be a good idea for me to switch over to Unity at this point in development, before the application gets too big.

  • aitrack

    6DoF Head tracking software

    Project mention: Johnny Lee's Wii Remote hack to create VR displays is still the most mind-blowing tech demo ever | reddit.com/r/videos | 2023-03-06

    Someone else pointed out AItrack which makes it possible to headtrack without those LED's and whatnot.

  • TES3MP

    Multiplayer for OpenMW, a reimplementation of The Elder Scrolls 3: Morrowind's engine.

    Project mention: What's the current best multiplayer mod for Oblivion? | reddit.com/r/oblivion | 2023-03-02

    TES3MP, which needs OpenMW

  • exult

    Exult is a project to recreate Ultima 7 for modern operating systems, using the game's original plot, data, and graphics files.

    Project mention: If NPCs have "daily lives" what's the most optimum way to upscale? | reddit.com/r/AskProgramming | 2022-12-09

    Here is schedule.h from Exult, Exult is a project to recreate Ultima VII for modern operating systems, using the game's original plot, data, and graphics files.

  • iw4x-client

    🎮 Official IW4x source code

    Project mention: [MW2] [WAW] Which one should I buy? | reddit.com/r/CallOfDuty | 2023-03-01
  • Vanilla-Conquer

    Vanilla Conquer provides clean, cross-platform builds of the C&C Remastered Collection and the standalone legacy games.

    Project mention: C&C: "Red Alert" and "Tiberian Dawn"s Linux ports added to Luxtorpeda | reddit.com/r/linux_gaming | 2023-01-28

    u/d10sfan has added Vanilla Conquer source port for Command & Conquer: Red Alert and Command & Conquer: Tiberian Dawn which are part of Command & Conquer Remastered Collection to Luxtorpeda repos. Thanks to that, native Linux ports of those games can be played as Steam games.

  • netradiant-custom

    The open-source, cross-platform level editor for id Tech based games.

    Project mention: Quake 3 mapping | reddit.com/r/QuakeChampions | 2022-05-11

    netradiant-custom is even better, I just don't use it because i'm far too accustomed to GtkR.

  • megaverse

    High-throughput simulation platform for Artificial Intelligence reseach

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

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-03-24.

C++ Games related posts


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

Project Stars
1 SFML 8,541
2 Minetest 8,509
3 EA Standard Template Library 7,029
4 wesnoth 4,324
5 open_spiel 3,587
6 warzone2100 2,597
7 Teeworlds 2,082
8 BehaviorTree.CPP 1,936
9 supertux 1,586
10 Textractor 1,441
11 TrenchBroom 1,366
12 antimicrox 1,333
13 EKA2L1 1,125
14 d912pxy 1,004
15 dosbox-staging 862
16 pegasus-frontend 753
17 aitrack 708
18 TES3MP 675
19 exult 403
20 iw4x-client 398
21 Vanilla-Conquer 232
22 netradiant-custom 203
23 megaverse 194
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives