javascript - Is phaser capable of large multiplayer games? -
newbie here. working phaser, isometric plugin.
i know if possible create games in phaser similar agar.io, in terms of handling real-time multiple connections, generating enormous map 300 players in , without having impact in game performance. don't know how handle multiplayer part (probably sockets, node.js) work well. , generating big map quite blank too.
- is possible, in phaser, create isometric-type game handles multiples real time multiplayer , huge maps generated when user gets edges of visible "map"? how?
- if not, should opt (game engine in js , other applications) in order achieve want?
you're not asking right question, you're close!
your first guess correct. wouldn't handle multiplayer phaser, you'd use web sockets, or nodejs, or other backend. phaser not limit in can create regards multiplayer, since none of networking code has phaser.
the idea of handling huge map depends on how optimize graphics, regardless of platform or framework you're using. example, if have huge or infinite maps, can show what's on screen, or around edges of screen, , use object pooling show rest of map players move.
for multiplayer in nodejs, check out socket.io. it's easy use. i've set barebones example using here. , in case might find helpful, here's open source game made ludum dare in phaser, networking (this 1 p2p, it's made handled 2 players connected each other, said, that's limitation of multiplayer framework used, in case peerjs.com, , has nothing phaser itself, can take care of rendering , game logic needs.)
hopefully helped answer of questions!
Comments
Post a Comment