Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

How would you make a 3d multiplayer game with javascript?

I have searching the web but have still not got a reliable tutorial please help.

2 Answers

You'd need something on the server (Node.js is pretty much your only option here!), something for real-time like Socket.io, and then one or more things for the front-end, of which there may be many options.

Here's a tutorial I found that using THREE.js for the 3D graphics: Creating a 3D Multiplayer Game with THREE.js and Socket.io

javascript does usually only apply functionality to a users browser. To code a Multiplayer game it needs interaction with a server or direct connection to another players computer. For these things you need more then just javascript. Browser games were no fast interaction is needed you can do that for example with javascript + php + mysql database.

For fast interactions like a arcade like game you should code something like that with "java, c++, or python" for example.

With just javascript you can only code a multiplayer game if you are on the same computer. thats possible.