{"id":20347987,"url":"https://github.com/shlomnissan/trex-runner","last_synced_at":"2025-07-11T04:36:43.060Z","repository":{"id":48941610,"uuid":"359276165","full_name":"shlomnissan/trex-runner","owner":"shlomnissan","description":"🦖 Chrome's Dinosaur Game in C++","archived":false,"fork":false,"pushed_at":"2023-11-13T23:38:09.000Z","size":235,"stargazers_count":131,"open_issues_count":0,"forks_count":17,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-12T01:03:15.078Z","etag":null,"topics":["dinosaur-game","gamedev","modern-cpp","trex-runner"],"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/shlomnissan.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}},"created_at":"2021-04-18T23:41:43.000Z","updated_at":"2025-03-22T10:44:23.000Z","dependencies_parsed_at":"2023-11-11T19:25:52.932Z","dependency_job_id":"22436558-8825-416f-9c6a-64a69a1c90cd","html_url":"https://github.com/shlomnissan/trex-runner","commit_stats":null,"previous_names":["shlomnissan/trex-runner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlomnissan%2Ftrex-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlomnissan%2Ftrex-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlomnissan%2Ftrex-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlomnissan%2Ftrex-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shlomnissan","download_url":"https://codeload.github.com/shlomnissan/trex-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501865,"owners_count":21114683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["dinosaur-game","gamedev","modern-cpp","trex-runner"],"created_at":"2024-11-14T22:18:47.907Z","updated_at":"2025-04-12T01:03:21.610Z","avatar_url":"https://github.com/shlomnissan.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# 🦖 Chrome’s Dinosaur Game in Modern C++\n\n\u003cp align=\"center\"\u003e\n   \u003cimg src=\"https://user-images.githubusercontent.com/3165988/120908452-565aa900-c61f-11eb-849c-7f56629657c0.gif\" /\u003e\n\u003c/p\u003e\n\nThis repository contains a port of Chrome's Dinosaur Game written in modern C++. It uses modern CMake for build generation and Conan 2 as its package manager.\n\n### Notes\n- The original JavaScript source code for this game can be found [here](https://source.chromium.org/chromium/chromium/src/+/master:components/neterror/resources/offline.js).\n- This port is accurate except for the missing Pterodactyl obstacle and night mode.\n\n### Dependencies\nAll dependencies for this project are imported using Conan 2.\n- `fmt/8.1.1` is used for string formatting.\n- `rapidjson/1.1.0` is used for reading JSON configuration files.\n- `sdl/2.26.5` is used for cross-platform system facilities.\n\nThis package also includes the `libs/stb_image.h` header for loading image files.\n\n### Getting started\nMake sure you have Conan 2 and CMake installed on your system.\n\u003cpre\u003e\n\u003cb\u003e$\u003c/b\u003e git clone https://github.com/shlomnissan/trex-runner.git\n\u003cb\u003e$\u003c/b\u003e cd trex-runner\n\u003cb\u003e$\u003c/b\u003e conan install . --output-folder=build -b=missing -s=build_type=Debug\n\u003cb\u003e$\u003c/b\u003e cd build\n\u003cb\u003e$\u003c/b\u003e cmake .. -DCMAKE_TOOLCHAIN_FILE=\"conan_toolchain.cmake\" -DCMAKE_BUILD_TYPE=Debug\n\u003cb\u003e$\u003c/b\u003e cmake --build .\n\u003c/pre\u003e\n\nFollowing these commands should result in an executable called `trex-runner` in the build directory. If you encounter any issues with Conan, take a look at the [Build a Simple CMake Project using Conan](https://docs.conan.io/2/tutorial/consuming_packages/build_simple_cmake_project.html) tutorial, which will guide you through this process step-by-step.\n\n## Licence\n\n```\n    ____       __                             __  \n   / __ )___  / /_____ _____ ___  ____ ______/ /__\n  / __  / _ \\/ __/ __ `/ __ `__ \\/ __ `/ ___/ //_/\n / /_/ /  __/ /_/ /_/ / / / / / / /_/ / /  / ,\u003c   \n/_____/\\___/\\__/\\__,_/_/ /_/ /_/\\__,_/_/  /_/|_|  \n                                                  \nCopyright (c) 2023-present Shlomi Nissan\nhttps://betamark.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshlomnissan%2Ftrex-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshlomnissan%2Ftrex-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshlomnissan%2Ftrex-runner/lists"}