- Notifications
You must be signed in to change notification settings - Fork17
shlomnissan/trex-runner
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This 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.
- The original JavaScript source code for this game can be foundhere.
- This port is accurate except for the missing Pterodactyl obstacle and night mode.
All dependencies for this project are imported using Conan 2.
fmt/8.1.1
is used for string formatting.rapidjson/1.1.0
is used for reading JSON configuration files.sdl/2.26.5
is used for cross-platform system facilities.
This package also includes thelibs/stb_image.h
header for loading image files.
Make sure you have Conan 2 and CMake installed on your system.
$ git clone https://github.com/shlomnissan/trex-runner.git$ cd trex-runner$ conan install . --output-folder=build -b=missing -s=build_type=Debug$ cd build$ cmake .. -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Debug$ cmake --build .
Following these commands should result in an executable calledtrex-runner
in the build directory. If you encounter any issues with Conan, take a look at theBuild a Simple CMake Project using Conan tutorial, which will guide you through this process step-by-step.
____ __ __ / __ )___ / /_____ _____ ___ ____ ______/ /__ / __ / _ \/ __/ __ `/ __ `__ \/ __ `/ ___/ //_/ / /_/ / __/ /_/ /_/ / / / / / / /_/ / / / ,< /_____/\___/\__/\__,_/_/ /_/ /_/\__,_/_/ /_/|_| Copyright (c) 2023-present Shlomi Nissanhttps://betamark.comPermission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the"Software"), to deal in the Software without restriction, includingwithout limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and topermit persons to whom the Software is furnished to do so, subject tothe following conditions:The above copyright notice and this permission notice shall beincluded in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BELIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIONWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.