Massively multiplayer browser games on stateless pages and a relational database, a tutorial on their construction
\'E. O. Rodrigues
Key points
From the paper's conclusion- A massively multiplayer browser game is a persistent world that many players change through ordinary web pages, with no client to install.
Abstract
A massively multiplayer browser game is a persistent world that many players change through ordinary web pages, with no client to install. This work is a tutorial for a developer or developer who wants to structure such a game from the start, from the overall organisation into modules to the protocols between players. The running example is the open-source role-playing game Naruto! Nigeru, whose engine keeps the whole game state in a relational database and uses no third-party library. The tutorial presents the overall view of the game, how its code is separated into modules, which technologies it uses and which ones it avoids, and then each mechanism as a design decision with its alternatives, namely the request cycle, the data model, the identity of the player without sessions, the world map computed from a hash of the coordinates, the turn-based combat, the economy under simultaneous requests, the trade and duel protocols, the ways a page waits for another player, and the content and languages. It closes with a suggested order of construction and the lessons of the example. The example has 25,930 lines of code in 9 feature modules over a core of 2,364 lines.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- LLM-based NPCs in Video Games: A Systematic Mapping StudyarXiv · 2026
- WorldStream: Streaming Interactive 3D Worlds with Hierarchical Planning and Persistent StatearXiv · 2026
- CriticaLLM: Using LLMs as Autonomous Game Master for Tabletop Role-Playing GamesarXiv · 2026
- igraph 1.0 enables fast and robust network analysis across programming languagesPLoS ONE · 2026
- Functional node layout in Metroidvania game worlds: A complex network analysisPLoS ONE · 2026
- On Unifying Relational and Object-Oriented Database Systems.1992