gamedev/floor-is-lava/play

The Floor Is Lava

← Back to dev blog

Tiles bubble, go quiet, then turn to lava. Step off them before they do. Every round more of the floor melts, and the game ends when nobody is left standing. There are six worlds, each with something else out to get you: sliding ice, snakes, erupting volcanoes, cars, and aliens with lasers on the moon. Play alone for a world's record or with whoever else is online: the last one alive wins.

It runs on my first multiplayer game, from 2018: a Java NIO server with a packet format I made up. In 2019 it stopped at the login screen; in 2026 it got a world, then a game. This is a browser port of the original Swing client, speaking the original protocol, with every packet printed under the game as it crosses the wire.

How to play

  • Click Guest to play straight away, or LOG IN to play under your own name: click the username box and type, then the password box. A name nobody has used becomes a new account.
  • Choose Single player or Multiplayer. In single player you pick the world: click one, or press 1 to 6. In the multiplayer lobby, vote for a world the same way, then click Ready, or Spectate to watch.
  • Walk with the arrow keys or WASD. Rock and water block you.
  • Watch for bubbling tiles. They stop bubbling and look normal again for a moment, then turn to lava. Anyone standing on one dies.
  • Press Enter to chat, and Enter again to send.
  • Menu, or the Esc key, goes back to the menu.
  • Open this page in a second tab and pick Multiplayer in both to play against yourself. The original 2018 desktop client can join the same lobby too.

How to play on a phone

  • Tap Guest to play straight away, or LOG IN to play under your own name: tap the username box, type, tap Next, type a password and tap Go. A name nobody has used becomes a new account.
  • Tap Single player or Multiplayer. In single player you tap the world you want. In the multiplayer lobby, tap a world to vote for it, then Ready, or Spectate to watch.
  • Walk with the D-pad under the screen. Hold an arrow to keep walking, and slide your thumb to another arrow to turn without letting go.
  • Watch for bubbling tiles. They stop bubbling and look normal again for a moment, then turn to lava. Anyone standing on one dies.
  • Tap the red CHAT button, type, and tap Send.
  • Players on computers and phones play in the same multiplayer games. Menu, under the screen on the right, goes back to the menu.

The rules

  • Single player is a game of your own. Multiplayer has one lobby for everyone: the game starts when there are at least two players and every one of them has clicked Ready. The players vote on the world, before or after clicking Ready: the most votes wins, and a tie is settled at random among the tied worlds. Spectators watch as ghosts and don't need to be ready, and if you come in while a game is on, you spectate it and can play the next one.
  • Each round, some tiles bubble for a few seconds, go quiet, then turn to lava. Survive and the next round melts more of the floor, faster, and favours the tiles near the players.
  • Alone, you're playing for the world record, and breaking it gets a banner. With others, the last player standing wins, and the record board keeps the most rounds anyone survived, who did it, how many players they beat and when. Every world keeps its own records. Guests get a name like Guest4821, and that's the name a guest's record goes under.
  • Players are solid: you can't walk through each other. From round 16 of a multiplayer game you can push: walk into a player to shove them a tile. Walk back into someone shoving you and neither of you moves.

The worlds

  • Meadow: the original map. Just the floor.
  • Winter: step onto ice and you slide until you reach snow, and you can't steer.
  • Desert: a burrow rattles, then a snake comes out and chases you. One bite kills.
  • Volcano: the lava rivers are always hot. A volcano shakes and smokes before it erupts, and the tiles its lava will land on light up. That lava stays for 3 rounds, then hardens into stone you can't walk through for 3 more.
  • City: cars never stop, and each lane goes one way. Stand in the road and you get shoved along it. Get shoved into a wall and you're crushed.
  • Moon: low gravity, so you walk slowly. From round 6 aliens land, another every five rounds. Don't step right next to one, and get out of the line when one aims its laser at you.

The 2018 server only speaks TCP, which browsers can't. It runs as a thread inside the JBend live demo, behind a WebSocket bridge that relays the bytes unchanged. The whole history is in the development blog.

← Back to dev blog Server source Client source All my games