Share your repls and programming experiences

← Back to all posts
Multiplayer 3D
h
AdCharity (1287)

Earlier, I saw that someone took my old Babylon.js 3D experiment and they didn't source me!!! (well to be fair they were asking a question).

I've taken the liberty and made this project... multiplayerified! Now obviously this was not the best way to go about doing it, but hey, it works.

Gallery

BEHOLD LAG IN ALL OF ITS GLORY

Updates (not that people check)

  • got rid of hovering player by dirt block (it was caused by... misuse of socket?)
Commentshotnewtop
Zexogon (845)

ME AND THE BOIS PLAYING Multiplayer 3D By AdCharity WHO GONNA JOIN WHERE WE JUMPING BOIS

AdCharity (1287)

@Zexogon tilted towers?? Oh wait it's gone

SixBeeps (2304)

@Zexogon Ayo we hittin up the rotating dirt block

eekboi (143)

@SixBeeps nah im gonna solo drop at the I̵̧̧̤̮̱̘̟̻̬̞̳͖͎͔͗̊͋͛̈́͌́͐́̀̕ͅ ̸̡̛̫̦̖̬̳̳̦͔͊̿̀́̄̈̆͋͂̕̚͜͝͝C̸͙̫̪̩̔͐̇͋̽̂̏̄͛̇̍͛̑̚ͅǓ̶̱͂̎̊̋̾͊R̴̢̨̨̛̹̦̣͓͇̦͉͔̝̳͓͋̎͌̌̍̾̚͝S̴̫̳̪̮͇͚͍͇͉̘͂̔͆͒͜͠͠Ę̵̢̧̹̠̪̻̻̐̾̄̐̑̎̔̆̈̎̀͗̇̾͜͠ ̶̡̡̺͖̻̫̩̯͎̪͕̩͈̬̓́́̄̑̋̀̏̈́̄̇͘͜Ý̵̺̍̋̀̄̍̅͗̍͠Ọ̶̧̨̧̨͇͙̘̣͈̦̲̋͂̾̈́̽͐̂͐̿̐͘Ǘ̸̡̡̢̻̟͖͇͖̲̭̼͍̤̥͕͙̱̋̽̅̏̏͒͐͑͘͠ ̸̻̪͇͖̠͕̺̐̉̇̄̀͒̎͌̉̀̇̒̇̔͒̕͝ͅŢ̷̧̛̜̺̗̳̻̖̤͓͇̠̆̈́̌̏̋̒̓͜O̸͎̘͕̝̖̟̼̜̻̺̝̎̏́͌̀̅̍̓̕͝͠ ̶̢̡̫̺̙̭̖̥̰̍̈́͠ͅS̷̡̢̩͖̺͕͍̮̖̣̫͓͈̱͉͌̀͗̋͂͒̿͒̑͛̐̂͐̈͜͝͝ͅT̶̛̠̘̊̈́̌̉̇͋͋͒̿̍̊̚͝͝E̴̯͉̺͊̈̓̂͌́̅̽̀̃̾̃͘P̸̡̨̮̖̙͍̦͙̗̎̚͜ͅͅ ̸̨͇̲͇͖͔͈̺͈̟͕͈̍͗̌̃̾̅̈́̍̋͆̄͝O̸̦͖̗̥̼̙͎͉͕̯̬͔̳̮̙̭̔́̿͐̈́̇̍̄͑͐̏́̐͂̀̐ͅN̶̟͎̜͙͉̲̥̝̟̺̠̳̺͒̀̈́́͒́̅̏̒̿̂̃̎͠ ̴̨̛̪̝̬̳̈́̈́̄̅͆̌̑̌̉͒̋̑̋͂͠A̸̪̻͕̮̰͎̜͎̫͜͜͝ ̷̢̫͖̭̗͙͍̜̟̯̻͎̜͎̱͈͉͂̈́̃̈́͗̄̓͝L̴̡̛͙̩̥͗̀̔̅̽̄͝E̶̛̺̦̮̞̲͍͙̯̩͊̉̈̒̀́̇ͅG̵̜͍̒̏́̓́̚͝Ô̸̰̮̜̻͍̐̍̄̄̿

Coder100 (2740)

Nice work!

One suggestion:

<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.js"></script>

Can simplify to

<script src="/socket.io/socket.io.js"></script>

people need to take advantage of what they install :P

LiamDonohue (278)

ALL HAIL THE ALMIGHTY DIRT BLOCK

CodeSalvageON (527)

Bro that’s bad oof. Which repl talk post is it ma clanka

An1ruth (4)

Oh yes. That's GREAT! WHERE WE GOING @Mokshake?

LiamDonohue (278)

interesting concept: play in 2 windows at the same time :p

Programmer567 (38)

cool!
can you add parcore to this???
parcore would be cool, even though it's already SICK!!!!!!!!!!!

AgastyaSandhuja (146)

cool. So let me get this straight: we can only walk and jump...?

AdCharity (1287)

@AgastyaSandhuja I'm planning on some massive update to make this actually interesting to play but I'm too short on time.

AdCharity (1287)

@AgastyaSandhuja tbh I saw someone else with my project asking how to use socket (for multiplayer) so I was like :/ I'm doing it first lmao (this is definitely not the first mutliplayer 3D game though)

ebest (624)

immediately starts reading bookmarks and tabs

AtriDey (88)

Nice. Also, I fell off the map USING the map boundary.

SixBeeps (2304)

Woahhhh, das cool. Could you make a toggle for look lerping? I'd prefer it off :P

SixBeeps (2304)

@AdCharity It feels like there's damping on the camera rotation when you move the mouse.

AdCharity (1287)

@SixBeeps I'll try to make the pointer lock and camera speed better

sugarfi (493)

repl.it refused to connect

AdCharity (1287)

@sugarfi I see you moving (maybe it's somebody else)