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.
- Multiplayer support for up to 4 players.
- Smooth and fast gameplay using SFML.
- Simple client-server architecture with Boost.Asio and Java.
- Java Development Kit (JDK) installed on the server system.
- SFML installed on the client system.
- C++ Compiler supporting C++17 or later.
git clone https://github.com/d3monviking/multiplayer-fiasco.git
- Navigate to the server directory:
cd multiplayer-fiasco/server
- Compile the server code:
javac Server.java
- Run the server:
java Server
Download SFML from the official website. Follow the installation instructions for your operating system.
- Navigate to the Client directory:
cd multiplayer-fiasco/Client
- 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);
- 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
- Build the client:
make
- Start the server:
java Server
- 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.