Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

New new multiplayer hero. 🎲

38,471 Aufrufe • vor 2 Jahren •via X (Twitter)

10 Kommentare

Profilbild von Marc Bouchenoire
Marc Bouchenoirevor 2 Jahren

Our two previous multiplayer heroes were quite subtle and the presence of others wasn’t always obvious enough, we wanted to focus on that with this one.

Profilbild von Marc Bouchenoire
Marc Bouchenoirevor 2 Jahren

As everything old is new again, we came back to something similar to our first hero in the end.

Profilbild von Marc Bouchenoire
Marc Bouchenoirevor 2 Jahren

But this time using “real” 3D, as I’d been meaning to explore @⁠react-three/fiber for a while.⁠ In fact, my first-week project at Liveblocks—roughly two years ago—was already about 3D cursors with R3F.⁠

Profilbild von Marc Bouchenoire
Marc Bouchenoirevor 2 Jahren

After a few visual explorations and some technical dead ends, we started exploring multiplayer physics while trying to stay simple and not run them server-side—here’s the first time it “worked”.

Profilbild von Marc Bouchenoire
Marc Bouchenoirevor 2 Jahren

We use @⁠react-three/rapier client-side but instead of also running physics server-side, we elect a single user per room who has the final say when things get out of sync between users.⁠

Profilbild von Marc Bouchenoire
Marc Bouchenoirevor 2 Jahren

Going back to my first-week project, the new 3D cursors are similar but only “attach” themselves to the scene when it makes sense visually, to avoid weird movements and sudden jumps.

Profilbild von Marc Bouchenoire
Marc Bouchenoirevor 2 Jahren

Another aspect we wanted to improve was how many people could experience the multiplayer version at once. Instead of falling back to a solo version after hitting a hard limit, we now create rooms on-demand, always aiming to keep things balanced.

Profilbild von Marc Bouchenoire
Marc Bouchenoirevor 2 Jahren

Finally, I feel so grateful for the @pmndrs and @threejs ecosystems, communities, and contributors. We’re definitely standing on the shoulders of giants here. 🙏

Profilbild von Marc Bouchenoire
Marc Bouchenoirevor 2 Jahren

And, ↑↑↓↓…

Profilbild von Chris Nicholas
Chris Nicholasvor 2 Jahren

Our new hero is outrageously good, amazing work!

Ähnliche Videos