/Stickman

Stickman Multiplayer Game is a Unity-powered online head-to-head stickman competition. Battle your opponent to reach the center of the screen first by jumping with the spacebar. Play with friends in custom rooms or take on random players.

Primary LanguageC#MIT LicenseMIT

Stickman

This Unity-based project, Stickman, was initially created in 2021 for a Fiverr client who sought an engaging online multiplayer game. Stickman is a two-player game where each player controls a stickman character competing to reach the center of the screen first. This technical overview delves into the critical aspects and components of the project.

Technical Overview:

1. Unity Engine:

The game is developed using the Unity game engine, providing a robust platform for crafting interactive 3D experiences. It was primarily designed and tested with Unity version 2021.3.4f1.

Please note: Plugin folders such as PUN are not included in the repository. Download PUN2 from the Unity Asset Store and integrate it into the project.

2. Gameplay:

Gameplay
  • Character Animation: Stickman characters execute a simple jumping animation when they move. These animations are key to conveying player actions.
  • Objective: Players strive to get their stickman to the center of the screen before their opponent, making gameplay competitive and engaging.
Won game

3. Multiplayer Integration with PUN2:

To support real-time online multiplayer functionality, the project effectively utilizes the Photon Unity Networking 2 (PUN2) framework. PUN2 facilitates seamless connections between players, ensuring they can interact and compete in real-time.

Wait a player

4. User Interface:

  • Usernames: Players can set their usernames, which are displayed during online matches.
Game menu
  • Matchmaking: The game offers options to search for random opponents, create custom rooms for friends, or join personalized rooms for multiplayer action.
Create private custom room Enter in private custom room

C# Scripts

A Unity project has many files in addition to scripts that are usually not managed by the developer. If you are only interested in seeing my work, namely the C# scripts I wrote, go directly to the assets folder and open the C# files.

Unfortunately, the project was not developed with the intention of publication, so the file names, variables, and functions are in Italian, and no scripts are commented or written to facilitate reading by others.

Keep in mind that I programmed this video game when I was 15 years old, so you can imagine that the code is not perfect or optimized to the best, but it still works perfectly, and you can study it to understand how Unity and PUN 2 work.