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

›命令行界面

游戏

  • 概述
  • 目的
  • 游戏玩法
  • 视角
  • 得分
  • 史诗模式
  • Towers

概念

  • 单位
  • 勇士
  • 技能
  • 空格

玩家 API

  • 空间 API
  • 单元 API
  • 转变 API

提示&技巧

  • 一般
  • JavaScript
  • 人工智能
  • 命令行界面

命令行界面

  • Install
  • Options
Translate

Options

您可以通过在 warriorjs 命令中传递多个选项来自定义游戏。可以运行 warriorjs --help 查看所有可用选项。

下面是详情列表:

--directory <path>

要在其中运行游戏的目录的路径。默认情况下, 使用当前工作目录。

--level <number> (epic mode only)

练习级别。在您遇到困难或想微调评分的级别上使用此选项。

--silent

Suppress play log. Use this option if you just care about the outcome of playing a level, and not each step of the play.

--time <seconds>

每回合延迟一秒。默认情况下, 每个回合的每一步都延迟0.6 秒。

--yes

在非破坏性确认对话框中假定为 yes。

← Install
  • --directory
  • --level (epic mode only)
  • --silent
  • --time
  • --yes
WarriorJS Docs
Docs
PlayerMaker
Community
SpectrumTwitterFollow WarriorJS on Twitter
More
DonateGitHubStar