Based on recent activity in the [2.1] and multiplayer [2.2] topics on GitLab, here are some highlights: 1. Colosseum of Tanks (Desktop)
Many games are hosted on the .gitlab.io subdomain. A quick search for site:gitlab.io "2 player" on a search engine will reveal hidden gems.
You never have to download executable files, eliminating the risk of malware. The games run entirely within the sandbox of your web browser. gitlab 2 player games
class GameClient: def __init__(self, host='localhost', port=12345): self.host = host self.port = port self.client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.client.connect((self.host, self.port))
: For those building from scratch, the MultiplayerLib is a Python-based library designed to streamline the creation of socket-based multiplayer games. Where to Explore More Based on recent activity in the [2
Follow this guide to get a simple HTML5 two-player game up and running using GitLab Pages. Step 1: Create a New Project Log in to your GitLab account. Click the icon and select New project/repository . Choose Create blank project .
Classic arcade clones (like Pong, Snake, or Tetris) built with JavaScript canvas elements. You never have to download executable files, eliminating
: This project features a Java version of the classic pencil-and-paper game. Players take turns drawing lines to complete squares and claim them. The GitLab repository is structured as an exercise, containing known bugs for developers to fix, making it a great learning tool as well.
Traditional "game servers" are expensive. However, many two-player games on GitLab use or WebRTC to establish direct connections between two browsers. Because GitLab Pages serves the initial HTML/JS payload, the game can facilitate real-time data (like player positions or moves) without needing a backend server. For turn-based games, simply using GitLab’s API or URL query strings is enough to share game states.
Before we dive into specific games, it’s important to understand why GitLab has become a secret weapon for indie game developers focusing on two-player mechanics.