gamedev / jbgame

JBGame

← Back to dev blog

A multiplayer tile world on JBend, the Java backend I wrote from scratch. The Java server ticks five times a second, owns every player's position and streams the map to your browser over a WebSocket.

How to play

  • Press Play as guest to jump straight in, or click the game, type a username and password (Tab switches field) and press Register. Registered players keep their position between visits.
  • Walk with the arrow keys or WASD, or click where you want to go and the server finds the way.
  • Press Enter to chat. Open this page in a second tab to see yourself from someone else's screen.
  • The red button at the top right logs you out.

How to play on a phone

  • Tap Play as guest to jump straight in. To make an account, tap the username line, type, tap Next, type a password and tap Register.
  • Tap where you want to walk. The server finds the way around water, and a yellow mark shows where you're headed.
  • Tap the box under the game to chat.
  • The red button at the top right logs you out.

The game runs inside the JBend live demo, one Java process next to this site, which shares its database. The story of how it got here is in the development blog.

← Back to dev blog Source All my games