Skip to content
orbworldsPublic

About

A survival sandbox in the browser where everyone shares one world. Dig, build and get through the night together. Play it at orbworlds.com/orbworlds/orbcraft

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Orbcraft

Orbcraft

Orbcraft is a blocky survival game you play in the browser with whoever else is online. There's one big shared world, the Wilds, and it stays: what you build and dig is still there next month. Anyone you meet out there can fight you, and anything can be broken.

If that sounds like a lot, stay in Haven: a walled town where nobody can hurt you, with shopkeepers, quests and portals. From there you can go to a build island and make things in peace, or start Ten Nights, a survival run on your own. There are daily quests, achievements and a seasonal pass, and a wardrobe of outfits, hats and capes. All of it is cosmetic.

Play it on Orb. It runs in the browser on a computer, phone or tablet, and you don't need an account.

Orbcraft Orbcraft

Controls

WASD to move (double-tap W to sprint), mouse to look, click to dig and place, Space to jump (twice to fly on the build island), Shift or C to sneak, E for your pack and crafting, Tab for quests and the wardrobe. On a phone or tablet it plays by touch.

Run it yourself

git clone https://github.com/orbworlds/orbcraft
cd orbcraft
npm install
npm start

That opens it at http://127.0.0.1:4242 with the Orb kit, which npm install brings and which gives the game what it gets on Orb: other players (open a second tab, or press + Player), saves, shared state and the shop, which charges nothing locally. You need Node 20 or newer.

The whole thing is index.html, 6,652 lines of HTML, CSS and JavaScript with three.js from a CDN. Edit it and the page reloads.

What it uses from Orb's world SDK (window.orb, typed in @orbworlds/kit/orb.d.ts):

  • orb.room for multiplayer (who is here, what they are doing, messages between players)
  • orb.room.invite for invite links that open the same room
  • orb.store for things everyone shares, like scores
  • orb.shop for the wardrobe, where looks are bought with Orb credits (the money from paid credits goes to the world’s maker)
  • plain localStorage for progress, which Orb saves per player and brings along to their other devices

Outside Orb and the kit, window.orb isn't there and the game carries on without it.

Make your own version

You can remix it on Orb without touching code: open it there, choose Make my own copy and describe what you'd change. Orb's AI makes the changes in your copy.

Or fork this repository, make your changes and push them. npm run share then prints a link that brings your fork into Orb as a world of your own, credited as a remix of this one, and it stays in sync with your fork from then on.

Contributing

Pull requests are welcome. GitHub checks each one by playing through the game in a headless browser, and once a change is merged it's live on Orb within about 15 minutes. CONTRIBUTING.md has the details.

License

MIT, see LICENSE. The page embeds the Pixelify Sans font, under the SIL Open Font License 1.1. The Orb name and logo aren't covered by the license.

About

A survival sandbox in the browser where everyone shares one world. Dig, build and get through the night together. Play it at orbworlds.com/orbworlds/orbcraft

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages