这是Minecraft的2D版本, 可以用来当画板用, 或者也可以拿来玩, 和别人一起联机
- 下载源码到本地
git clone https://github.com/NriotHrreion/ICraft-App.git
- 进入源码根目录下载依赖
npm install
- 启动App
npm run ic-launch
- 最后用浏览器进入
http://localhost:3000
- 下载源码到本地
git clone https://github.com/NriotHrreion/ICraft-App.git
- 在
server/config.json
文件中配置服务器
{
"serverName": "Server", // 服务器名称
"serverMotd": "An ICraft Server", // 服务器简介
"worldName": "world", // 存档名称
"port": 7000 // 服务器端口
}
- 在
server
文件夹下启动服务器
node index
- 在ICraft客户端中添加服务器并进入即可
启动代码: npm start ic-launch
修改/测试代码: 修改代码后重新加载页面即可
Pull Request: 发送代码时请在说明中注明修改的部分