/ICraft-App

基于React.js的Minecraft 2D版本仿制游戏

Primary LanguageJavaScriptMIT LicenseMIT

ICraft App

This Repo Has Been Archived

By NriotHrreion; Using React.js

简介

这是Minecraft的2D版本, 可以用来当画板用, 或者也可以拿来玩, 和别人一起联机

ICraft 开发日志

客户端使用

  1. 下载源码到本地
git clone https://github.com/NriotHrreion/ICraft-App.git
  1. 进入源码根目录下载依赖
npm install
  1. 启动App
npm run ic-launch
  1. 最后用浏览器进入
http://localhost:3000

服务端使用

  1. 下载源码到本地
git clone https://github.com/NriotHrreion/ICraft-App.git
  1. server/config.json文件中配置服务器
{
    "serverName": "Server", // 服务器名称
    "serverMotd": "An ICraft Server", // 服务器简介
    "worldName": "world", // 存档名称
    "port": 7000 // 服务器端口
}
  1. server文件夹下启动服务器
node index
  1. 在ICraft客户端中添加服务器并进入即可

贡献

启动代码: npm start ic-launch

修改/测试代码: 修改代码后重新加载页面即可

Pull Request: 发送代码时请在说明中注明修改的部分

LICENSE

MIT