---
title: "Make a Multiplayer Game with Kaboom.js and Heroic Labs"
description: "A multiplayer platformer can run in Replit's browser IDE using the Kaboom.js game library on the client and Heroic Labs' open source Nakama server, run locally via Docker Compose with Postgres, as the backend."
url: "https://swe.quest/articles/make-a-multiplayer-game-with-kaboom-js-and-heroic-labs-c70665185deec0fa"
canonical: "https://replit.com/blog/make-a-multiplayer-game-with-kaboom-and-heroic-labs"
source: "Replit"
published: "2022-02-15"
difficulty: "medium"
kind: "How-to"
reading_minutes: 19
tags: ["gaming","realtime","javascript"]
---

# Make a Multiplayer Game with Kaboom.js and Heroic Labs

A post on [Replit](https://swe.quest/sources/replit.md), published 2022-02-15, 19 min read, How-to. Original: [https://replit.com/blog/make-a-multiplayer-game-with-kaboom-and-heroic-labs](https://replit.com/blog/make-a-multiplayer-game-with-kaboom-and-heroic-labs)

## Summary

A multiplayer platformer can run in Replit's browser IDE using the Kaboom.js game library on the client and Heroic Labs' open source Nakama server, run locally via Docker Compose with Postgres, as the backend. The walkthrough authenticates players with Nakama email auth to create sessions and opens a realtime socket. Players then create or join matches by match ID and broadcast state so every participant sees each other's movement. On the Kaboom side it sets up a world, a platform and keyboard-controlled players that can move and jump.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Games](https://swe.quest/tags/gaming.md) (Domains)
- [Real-time systems](https://swe.quest/tags/realtime.md) (Backend & APIs)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- basic JavaScript ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Docker basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))

## Keywords

Kaboom.js, Nakama, Heroic Labs, Replit, Docker Compose, nakama-js

## Related posts

- [The open source Kahoot alternative](https://swe.quest/articles/the-open-source-kahoot-alternative-f1d3ab02612a0905.md): Supabase · 2024-05-09 · Medium · 5 min read · Real-time systems, PostgreSQL, Identity & auth, Frontend, Open source
  Supabase built an open-source Kahoot-style quiz game for its GA Week meetups.
- [Introducing Kaboom](https://swe.quest/articles/introducing-kaboom-7829faa4b8e236ed.md): Replit · 2021-04-06 · Medium · 4 min read · Games, JavaScript, Developer tools
  Kaboom is a JavaScript game library from Replit aimed at beginners and intermediate programmers.
- [How to build a real-time multiplayer game with Flutter Flame](https://swe.quest/articles/how-to-build-a-real-time-multiplayer-game-with-flutter-flame-cc7e275b27a553e7.md): Supabase · 2023-02-14 · Medium · 18 min read · Games, Real-time systems, Mobile
  A real-time multiplayer UFO shooting game can be built with Flutter, the Flame game engine and Supabase Realtime.
- [Build a dinosaur runner game with Deno, pt. 5](https://swe.quest/articles/build-a-dinosaur-runner-game-with-deno-pt-5-5afa507e9804672c.md): Deno · 2026-02-09 · Medium · 9 min read · JavaScript, PostgreSQL, Games, Frontend
  Part five of a Deno tutorial series adds player identity and customization to a browser dinosaur runner game.
- [How Figma draws inspiration from the gaming world](https://swe.quest/articles/how-figma-draws-inspiration-from-the-gaming-world-d8a336bcdbd13832.md): Figma · 2023-05-03 · Easy · 13 min read · Real-time systems, WebAssembly, System design, Games, Debugging
  Figma's architecture resembles a game engine more than a typical web stack: a C++ canvas compiled to WebAssembly for 2D rendering, a React/TypeScript UI layer, and a Rust multiplayer server, plus layered systems for multiplayer, animation, collisions, chat and plugins.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
