lance

Can I make a multiplayer Phaser game using Lance?

最后都变了- 提交于 2019-12-22 09:08:03
问题 How do I take an existing Phaser game and make it multiplayer? Can I use the Lance library for this purpose? Both libraries control their own game objects so I don't know how to use the two frameworks together in the same game. 回答1: Disclaimer: I am one of the co-creators of Lance Unfortunately, Phaser's 2.* architecture makes it hard to pair with Lance to make Realtime Javascript Multiplayer games. The issue is that Phaser makes a lot of assumptions that don't hold for a multiplayer setting.

Sending “secret” data to individual players in Lance Game

二次信任 提交于 2019-12-10 15:45:47
问题 I'm wondering if there is an easy way in lance-gg to send player specific data to each player only, rather than emitting all data to all players. I wish to have create a poker game, and don't want the data around what each player is holding broadcast to all players and instead only have each player receive information regarding their own cards. Is this easily achievable between the current GameEngine and ServerEngine? Over the course of the game the following steps will need to occur: "deal"

Can I make a multiplayer Phaser game using Lance?

人盡茶涼 提交于 2019-12-05 16:20:09
How do I take an existing Phaser game and make it multiplayer? Can I use the Lance library for this purpose? Both libraries control their own game objects so I don't know how to use the two frameworks together in the same game. Disclaimer: I am one of the co-creators of Lance Unfortunately, Phaser's 2.* architecture makes it hard to pair with Lance to make Realtime Javascript Multiplayer games. The issue is that Phaser makes a lot of assumptions that don't hold for a multiplayer setting. For example, the rendering and game loop are tied together. The server, obviously doesn't need to render