# LockstepDemo **Repository Path**: kksatre/LockstepDemo ## Basic Information - **Project Name**: LockstepDemo - **Description**: 乐观帧同步网页示例,支持断线重连。(使用node.js + socket.io开发) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-11-26 - **Last Updated**: 2025-07-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 帧同步网页小游戏 一个乐观帧同步的最简单示例。 * node.js+socket.io开发 * **支持断线重连** ## 如何运行 * 服务端 ```shell $ cd server $ npm install $ node app.js ``` * 客户端(也可使用任意方法启动一个web服务) ```shell $ cd client $ python3 -m http.server 8080 ``` * 启动完成后访问:[http://127.0.0.1:8080/](http://127.0.0.1:8080/) ## 示例截图 ![](README/preview.png)