Code Monkey home page Code Monkey logo

ci628-pongclient's Introduction

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 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 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
  1. Open git bash and check cmake works by typing:
cmake --version

ci628-pongclient's People

Contributors

almasb avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.