+ 2
Online JavaScript Game
What will it take to make a simple game written in JavaScript/HTML to be playable online with up to 4 players?
4 ответов
+ 7
Sometimes all it takes is firebase ;)
https://code.sololearn.com/WIr2wJhOlOtj/?ref=app
https://code.sololearn.com/WrpYyc120xuK/?ref=app
https://code.sololearn.com/W60kx45N0zbA/?ref=app
+ 7
Fernando Moceces
Here are some Firebase tutorials that might come in handy
Vanilla JS tutorial
https://softauthor.com/learn-to-build-firebase-crud-app-with-javascript-part01-reading-data/
Vanilla JS CRUD Example
https://github.com/VoloshinS/firebase-crud-example
jQuery Example
https://www.google.com/amp/s/time2hack.com/2017/02/firebase-crud-operations-javascript-jquery/amp/
Official Get Started Docs
https://firebase.google.com/docs/database/web/start
+ 2
First of all, you should know a little of physics for the collisions, when the player jump etc. Also, it requires canvas, as it is a simple game. Mouse and Keyboard events for each player, so I recommend you to make a Class Player to make the 4 object players, for make it online, actually I don't know how but you can look it up it shouldn't be difficult to do.
+ 1
Thank you for the responses.
I already have my own game (a card game native to my origin). I have it written, is actually pretty solid and I would like to make it playable online so I can battle my buddies.
I did some google research but things looked overwhelming.
The only result that remotely resembled what I'm trying to find was a tutorial to make a multiplayer car racing game which is so broadly written and made no sense to me.
All I could take was that it involved nodes or something (npm, I don't know).
I hope I anybody could shade some light here.