Skip to content

d3monviking/multiplayer-fiasco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiplayer Fiasco

Multiplayer Fiasco is a multiplayer 2D platformer game designed for up to four players. The client-side is developed in C++ using the Simple and Fast Multimedia Library (SFML) and Boost.Asio for networking, while the server-side is implemented in Java, and its native packages.


Features

  • Multiplayer support for up to 4 players.
  • Smooth and fast gameplay using SFML.
  • Simple client-server architecture with Boost.Asio and Java.

Prerequisites

Server

  • Java Development Kit (JDK) installed on the server system.

Client

  • SFML installed on the client system.
  • C++ Compiler supporting C++17 or later.

Installation and Setup

Clone the Repository

git clone https://github.com/d3monviking/multiplayer-fiasco.git

Server Setup

  1. Navigate to the server directory:
cd multiplayer-fiasco/server
  1. Compile the server code:
javac Server.java
  1. Run the server:
java Server

Client Setup

Install SFML:

Download SFML from the official website. Follow the installation instructions for your operating system.

Configure the client:

  1. Navigate to the Client directory:
cd multiplayer-fiasco/Client
  1. Open Main.cpp in a text editor. Modify the IP address in line 8 to match your server's IP:
udp::endpoint serverEndpoint(boost::asio::ip::make_address("your-server-ip"), 8888);
  1. To find your server's IP, run the following command on the server system, and copy the IP next to inet and replace "your-server-ip" with the IP address in quotes.
ifconfig
  1. Build the client:
make

How to Play

  1. Start the server:
java Server
  1. Launch the client(s): Ensure the server is running before starting the clients. Use the following command to start the game on each client terminal:
./game

Once all players have joined the game, press Enter in the server terminal to start the game.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •