WarriorJS Docs
  • Player
  • Maker
  • 社区
  • 中文
    • English
    • العربية
    • Català
    • Čeština
    • Deutsch
    • Ελληνικά
    • Español
    • Français
    • Italiano
    • Polskie
    • Русский
    • Српски језик (Ћирилица)
    • Svenska
    • Türkçe
    • 繁體中文
    • 帮助翻译
  • GitHub

›向导

向导

  • 介绍
  • Creating Your Tower
  • 增加级别
  • Defining Abilities
  • Defining Units
  • Refactoring
  • Testing
  • 发布

制造者 API

  • 空间 API
  • 单元 API
Translate

Creating Your Tower

A WarriorJS tower is a regular JavaScript module with a single export:

module.exports = {
  // Tower definition.
};

Let's define the name of our tower and write a brief description:

module.exports = {
  name: 'Game of Thrones',
  description:
    'There is only one war that matters: the Great War. And it is here.',
};

Cool! But there's nothing to climb yet. Let's add some levels to this tower!

← 介绍增加级别 →
WarriorJS Docs
Docs
PlayerMaker
Community
SpectrumTwitterFollow WarriorJS on Twitter
More
DonateGitHubStar