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

›Guide

Guide

  • Introduction
  • Creating Your Tower
  • Adding Levels
  • Defining Abilities
  • Defining Units
  • Refactoring
  • Testing
  • Publishing

Maker API

  • Space API
  • Unit API
Edit

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!

← IntroductionAdding Levels →
WarriorJS Docs
Docs
PlayerMaker
Community
SpectrumTwitterFollow WarriorJS on Twitter
More
DonateGitHubStar