GithubHelp home page GithubHelp logo

justjavac / screeps-typescript-starter-zh_cn Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 2.0 338 KB

快速使用 Typescript 开发属于自己的 Screeps AI 程序

Home Page: https://screeps.devtips.cn

License: The Unlicense

JavaScript 30.93% TypeScript 69.07%
screeps screeps-game

screeps-typescript-starter-zh_cn's Introduction

使用 Typescript 开发 Screeps

本项目是 Screeps Typescript Starter 的简体中文版。基于此项目你可以快速地使用 Typescript 开发属于自己的 Screeps AI 程序。

使用

前置需求

  • Node.js 10.x 版本。目前 Node.js 最新 LTS 版为 14.x,但是和 Screeps 不兼容,所以推荐使用 Screeps 官方推荐的 10.x 版本。
  • 包管理工具 (Yarn 或者 npm)

使用 git 克隆本仓库:

git clone https://github.com/justjavac/screeps-typescript-starter-zh_CN

或者直接下载

打开终端运行:

# npm
npm install

# 或者 yarn
yarn

如果没报错,那么你就可以打开 src 目录进行开发了。

部署

Screeps Typescript Starter 使用 rollup 编译打包 typescript 文件,然后上传到 screeps 服务器。

screeps.sample.json 改名为 screeps.json,根据自己的服务器信息进行配置和修改。配置文件中包含了 3 个官服以及我自己搭建的私服 https://screeps.devtips.cn

类型定义文件

本项目所用到的类型定义文件来自 typed-screeps-zh_CN。如果开发过程中发现了不能正确提示的地方,可以提 issue 或者 pr。

注意事项

**重要:**请不要升级 @types/lodash,因为 screeps 内置了 [email protected] 版本,因此请不要将 @types/lodash 升级到最新的 4.x 版本,以免引起兼容性问题。

许可证

本项目 screeps-typescript-starter-zh_CN 基于 Unlicense License 发行到公共领域。

screeps-typescript-starter-zh_cn's People

Contributors

hu-qi avatar justjavac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.