2 min read
Pong Game
Pong Game window

As a way to learn C programming, a friend and I collaborated on the development of a straightforward Pong game using SDL2.

This project involves the utilization of UDP sockets to manage all networking functionalities.

🚀 Get Started

To get started with your own version of Pong, simply clone the repository and follow the setup instructions below.

📋 Features

  • 🎮 Multiplayer Pong gameplay
  • đŸ–Ĩī¸ Developed in C
  • đŸ•šī¸ Uses the SDL library for graphics
  • 🌐 Network communication over UDP sockets

📄 Installation and Setup

Ensure you have the necessary development environment set up with SDL and UDP support. Clone the repository and follow the instructions to build and run the server and client.

Server (default port 6969)

./pong

Client

./pong -c <server_address>

đŸ’ģ Commands

All commands are run from the root of the project, from a terminal:

CommandAction
./pongStarts the Pong server
./pong -cConnects to a Pong server as a client