| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
chuanqiyu
9年前发布

77行Go语言代码写成的Multiplayer NES游戏服务器

来自: https://github.com/olahol/melody-jsnes?url_type=39&object_type=webpage&pos=1

melody-jsnes

Super simplistic Multiplayer NES server in Go.

melody-jsnes is a demo project showing off Go's real-time web app capabilities. Its design is straight forward, it just snapshots the canvas of player one and sends it to player two and sends back inputs from player two. Images data goes in direction, key codes in the other.

Usage

You will need to have at least one NES ROM with the extension .nes .

$ git clone --recursive https://github.com/olahol/melody-jsnes  $ go get  $ go build  $ ./melody-jsnes  $ $BROWSER http://localhost:5000

Contributors

  • Ola Holmström (@olahol)
  • Chris Cacciatore (@cacciatc)

 本文由用户 chuanqiyu 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1457166174234.html
Go语言 Google Go/Golang开发