WarriorJS Docs
  • Игрок
  • Разработчик
  • Сообщество
  • Русский
    • English
    • العربية
    • Català
    • Čeština
    • Deutsch
    • Ελληνικά
    • Español
    • Français
    • Italiano
    • Polskie
    • Српски језик (Ћирилица)
    • Svenska
    • Türkçe
    • 中文
    • 繁體中文
    • Помочь с переводом
  • GitHub

›CLI

Игра

  • Обзор
  • Объект
  • Игровой процесс
  • Перспектива
  • Система баллов
  • Эпический режим
  • Towers

Основы

  • Существа
  • Воин
  • Способности
  • Разделы

API игрока

  • API Областей
  • Unit API
  • API Хода

Советы и Подсказки

  • Основныe
  • JavaScript
  • Искусственный Интеллект
  • CLI

CLI

  • Install
  • Options
Translate

Install

Let's start by installing WarriorJS globally with npm.

Open the terminal and run:

npm install --global @warriorjs/cli

IMPORTANT: Node.js >=8 needs to be installed in your computer before running the npm command. The recommended installation method is through the official installer.

After installing the game, you can execute it by running the warriorjs command in the terminal:

warriorjs

That's it! This will guide you through the creation of your warrior. Give your warrior a proper name and choose the "Baby Steps" tower.

After you've done that, you should have the following file structure (we decided to name our warrior after the bastard son of Lord Eddard Stark):

warriorjs
└── jon-snow-baby-steps
    ├── Player.js
    └── README.md
  • jon-snow-baby-steps is your profile's directory.
  • Player.js is your warrior's brain, you'll be editing this file often.
  • README.md contains the instructions for the current level.

Go ahead and open README.md to find the instructions for the first level.

← Советы по CLIOptions →
WarriorJS Docs
Docs
PlayerMaker
Community
SpectrumTwitterFollow WarriorJS on Twitter
More
DonateGitHubStar