patchwire:用于Node.js的多人游戏服务器框架 源码
跳线 Node.js的多人游戏服务器框架 安装 npm install patchwire 利用 // MyGameServer.js const Server = require ( 'patchwire' ) . Server ; const ClientManager = require ( 'patchwire' ) . ClientManager ; const gameLobby = new ClientManager ( ) ; gameLobby . on ( 'clientAdded' , function ( ) { gameLobby . broadcast (
用户评论