{"id":44750685,"url":"https://github.com/tupini07/raylib-cpp-cmake-template","last_synced_at":"2026-02-15T23:09:16.510Z","repository":{"id":81787151,"uuid":"588785999","full_name":"tupini07/raylib-cpp-cmake-template","owner":"tupini07","description":"A small Raylib C++ template that uses CMake, LDtk, and Box2d ","archived":false,"fork":false,"pushed_at":"2025-04-10T17:01:30.000Z","size":285,"stargazers_count":76,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-10T18:02:45.859Z","etag":null,"topics":["game-template","raylib","raylib-cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tupini07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-14T02:05:40.000Z","updated_at":"2025-04-10T16:19:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e99d7e3-2c3c-4d8a-80a4-8c3b68227e6e","html_url":"https://github.com/tupini07/raylib-cpp-cmake-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/tupini07/raylib-cpp-cmake-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tupini07%2Fraylib-cpp-cmake-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tupini07%2Fraylib-cpp-cmake-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tupini07%2Fraylib-cpp-cmake-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tupini07%2Fraylib-cpp-cmake-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tupini07","download_url":"https://codeload.github.com/tupini07/raylib-cpp-cmake-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tupini07%2Fraylib-cpp-cmake-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29492002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["game-template","raylib","raylib-cpp"],"created_at":"2026-02-15T23:09:16.045Z","updated_at":"2026-02-15T23:09:16.505Z","avatar_url":"https://github.com/tupini07.png","language":"C++","readme":"# Raylib C++ CMake Template\n\n\u003cp align=\"center\"\u003e\n    \u003cimg \n        src=\"https://user-images.githubusercontent.com/3422347/214886231-efaf580b-ffe6-44e0-b40b-ea8d84df3754.gif\" \n        style=\"width: 100%; max-width: 400px;\" width=\"400\" align=\"center\"\n    /\u003e\n\u003c/p\u003e\n\n\nThis repo constains a small game that you can use as a template for your Raylib\ngames if you wish to use C++ and CMake.\n\nCMake is configured to automatically download the dependencies of your game\nthrough git, and pin them to a specific commit version (for example, [see how\nwe're importing the raylib\ndependency](https://github.com/tupini07/raylib-cpp-cmake-template/blob/11af0880cf10ecc31fc0d5d63e79650d205024a2/CMakeLists.txt#L25-L31)).\nThis provides a very flexible mechanism to include new dependencies, or update\nthe existing ones, without having to muck about with your system's package\nmanager, or worrying about linking external libraries at all. It is a bit slower\non the first build though, since CMake will need to build everything.\n\nFor the moment, the project is using the following dependencies which should be\nuseful in many games:\n\n- [LDtkLoader](https://github.com/Madour/LDtkLoader) - used to load and help\n  with drawing a map made with the awesome [LDtk](https://ldtk.io/).\n- [box2d](https://github.com/erincatto/box2d) - ubuquitous and easy to use 2D\n  physics engine.\n- [fmt](https://github.com/fmtlib/fmt) - logging and string formatting library\n  that makes your life much easier.\n- [raygui](https://github.com/raysan5/raygui) - a simple and easy to use\n  immediate mode GUI library that is built on top of raylib. Good for building\n  UIs and debugging tools.\n\nIf you don't know where to start or how to use this template then check out [the wiki](https://github.com/tupini07/raylib-cpp-cmake-template/wiki)!\n\n## Important files\n\nYou can get a good understanding of how things work by reading through the\nfollowing files:\n\n- [[main.cpp](https://github.com/tupini07/raylib-cpp-cmake-template/blob/11af0880cf10ecc31fc0d5d63e79650d205024a2/sources/main.cpp)]\n  this is, of course, the entrpoint of the game. It maintains a top-level frame\n  buffer to which all draw operations are done, and then this buffer is drawn to\n  the screen, with a specific scale (meaning you can easily scale and/or\n  translate your game without having to worry about the actual screen\n  resolution). It also calls the SceneManager's update and draw methods.\n- [[SceneManager](https://github.com/tupini07/raylib-cpp-cmake-template/blob/11af0880cf10ecc31fc0d5d63e79650d205024a2/sources/scenes/SceneManager.hpp)]\n  Implements an extremly simple scene manager. It updates and draws the current\n  scene or switches to a new scene if necessary.\n- [[TitleScene](https://github.com/tupini07/raylib-cpp-cmake-template/blob/11af0880cf10ecc31fc0d5d63e79650d205024a2/sources/scenes/TitleScene/TitleScene.cpp)]\n  This is the main screen that is shown when the game starts. It contains some examples\n  of raygui components.\n- [[GameScene](https://github.com/tupini07/raylib-cpp-cmake-template/blob/11af0880cf10ecc31fc0d5d63e79650d205024a2/sources/scenes/GameScene/GameScene.cpp)]\n  This is the scene where the main _game_ happens. It's not really a game per\n  se, just a showcase of how you would set up a\n  [Player](https://github.com/tupini07/raylib-cpp-cmake-template/blob/11af0880cf10ecc31fc0d5d63e79650d205024a2/sources/entities/Player/Player.cpp),\n  draw an LDtk map, and add some physics to everything using Box2D.\n\n\n# Questions and comments\n\nIf you have any question then feel free to [create a new discussion](https://github.com/tupini07/raylib-cpp-cmake-template/discussions/new), or if you see any issue then go ahead and [open a new issue](https://github.com/tupini07/raylib-cpp-cmake-template/issues/new). \n\nIf you see anything that can be improved then feel free to make a PR! Those are always welcome 🙂 Another welcomed contribution is that of going through the wiki and clarifying content or adding new things you think might be helpful for others.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftupini07%2Fraylib-cpp-cmake-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftupini07%2Fraylib-cpp-cmake-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftupini07%2Fraylib-cpp-cmake-template/lists"}