帧同步网页小游戏
一个乐观帧同步的最简单示例。
- node.js+socket.io开发
- 支持断线重连
如何运行
- 服务端
$ cd server
$ npm install
$ node app.js- 客户端(也可使用任意方法启动一个web服务)
$ cd client
$ python3 -m http.server 8080- 启动完成后访问:http://127.0.0.1:8080/
| ★ wanayoo — archive 1999 https://github.com/ookcode/LockstepDemo | Nouvelle recherche | Portail wanayoo |
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up| Failed to load latest commit information. | |||
|
|
README |
|
|
|
|
client |
|
|
|
|
server |
|
|
|
|
.gitignore |
|
|
|
|
README.md |
|
|
一个乐观帧同步的最简单示例。
$ cd server
$ npm install
$ node app.js$ cd client
$ python3 -m http.server 8080