gamedev / java-game

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. Play alone for the world 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 LOGIN, type a username, press the Enter key, type a password, then click the Enter button. A name nobody has used becomes a new account.
  • 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.
  • Open this page in a second tab to play against yourself. The original 2018 desktop client can join the same game too.

How to play on a phone

  • Tap LOGIN and the keyboard opens. Type a username, tap Next, type a password and tap Go. A name nobody has used becomes a new account.
  • 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 game.

The rules

  • A game starts a few seconds after someone logs in. If you arrive while one is running, you watch as a ghost until it ends.
  • 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.

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