https://github.com/almasb/ci628-pongclient
A simple multiplayer pong client in C++.
https://github.com/almasb/ci628-pongclient
Last synced: 12 months ago
JSON representation
A simple multiplayer pong client in C++.
- Host: GitHub
- URL: https://github.com/almasb/ci628-pongclient
- Owner: AlmasB
- License: mit
- Created: 2020-04-21T09:09:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-05T17:37:48.000Z (over 3 years ago)
- Last Synced: 2025-04-05T02:33:46.649Z (about 1 year ago)
- Language: C
- Size: 5.15 MB
- Stars: 4
- Watchers: 2
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CI628-PongClient
A simple multiplayer pong client in C++.
### Build
The project is configured to be developed on Windows, so it only includes Windows-specific SDL versions.
To build, you will need:
* [CMake](https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2-windows-x86_64.zip) 3.24+
* Visual Studio 2022
1. Download this repository by clicking "Code" -> Download zip.
2. Extract the zip file and rename `CI628-PongClient-master` to `CI628`.
Open the command line (via Git Bash):
```
cd CI628
mkdir build
cd build
// OR see further below how to make cmake visible globally
PATH_WHERE_DOWNLOADED_CMAKE/bin/cmake.exe .. -G "Visual Studio 17 2022"
```
After this, a ".sln" will be generated in `build/`.
1. Open the ".sln" file with Visual Studio 2022.
2. Right click on MyGame in project explorer and select as startup project.
3. Right click on MyGame again and select Properties.
4. In the properties window, Linker -> System and change SubSystem to Console.
Before running the demo, ensure that the [CI628-server application](https://github.com/AlmasB/CI628-PongServer/releases) is running. You can now run the demo from Visual Studio via Local Windows Debugger.
#### Globally accessible cmake
1. Close git bash if open.
2. Go to `C:\Users\your_user_name` and open (or create) a file with **exact** name `.bash_profile`.
3. Add to file:
```
export CMAKE_HOME=/c/Users/... <-- path to cmake directory (i.e. where you downloaded/extracted cmake to)
export PATH=$PATH:$CMAKE_HOME/bin
```
4. Open git bash and check cmake works by typing:
```
cmake --version
```