C++ Golf Sim built using RayLib
WARNING - This is software is pre-pre-pre-alpha. You should expect it to break and be buggy.
That is all.
- Follow the appropriate installation instructions for your distro.
- Currently using gcc version 15.0.1-0
- Follow the appropriate installation instructions for your distro.
- Currently using GNU Make 4.4.1
- Follow the instructions on the Raylib GitHub page: https://github.com/raysan5/raylib
- Make sure to install the built files so that they are findable by the pre-processor/linker using
make installor other variation.
- Clone repository into a local folder
git clone https://github.com/jhauck2/JaySim.gitcd JaySim
- Create a folder in the src directory for the nlohmann json library
cd srcmkdir nlohmann- Go to https://github.com/nlohmann/json and download the json.hpp file from the single_include/nlohmann folder
- Copy/move this file into the src/nlohmann folder
- Navigate to the root directory.
cd ..(orcd ../..if currently in the nlohmann folder). - Create the build directory:
mkdir build - Run
maketo compile the program. *Note: make setsPLATFORMtoPLATFORM_LINUXby default - All *.o files and the executable should be located in the build directory.
make runor./build/jSimto run the program- Note: JaySim uses port 49152 for connection with a LM. If you need to change this port for any reason you can change the value in the file
TCPSocket.hppand rebuild withmakeormake run
- Navigate to https://github.com/skeeto/w64devkit/releases and download the w64devkit-x86-2.2.0.7z.exe
- Note: Windows Defender and/or your browser may flag this as a virus. Override this and run the exe
- This is a self extracting executable. Exctract the files to your C: drive
- Navigate to C:/w64devkit and run w64devkit.exe. You should see a w64devkit terminal
- Download the raylib zipped source files from https://ghithub.com/raysan5/raylib
- Extract the files to your C: drive
- In your w64devkit terminal navigate to C:/raylib-master/src
- Run
make
- Clone repository into a local folder
git clone https://github.com/jhauck2/JaySim.gitcd JaySim
- Create a folder in the src directory for the nlohmann json library
cd srcmkdir nlohmann- Go to https://github.com/nlohmann/json and download the json.hpp file from the
single_include/nlohmannfolder - Copy/move this file into the src/nlohmann folder
- Navigate to the root directory.
cd ..(orcd ../..if currently in the nlohmann folder). - Create the build directory:
mkdir build - Run
make PLATFORM=PLATFORM_WINDOWSto compile the program - All *.o files and the executable should be located in the build directory.
make run PLATFORM=PLATFORM_WINDOWSor./build/jSim.exeto run the program- Note: JaySim uses port 49152 for connection with a LM. If you need to change this port for any reason you can change the value in the file
TCPSocket.hppand rebuild withmakeormake run