0.5.1 • Published 9 years ago

platform-pixels-level-generator v0.5.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

Platform Pixels Level Generator

Procedural level generator used for Platform Pixels.

This is the tool that is currently used to create the levels that you see in the Platform Pixels beta. This is still in early stages and will likely change dramatically in the future.

Installation

npm install -g platform-pixels-level-generator

Usage

The pplg command comes with one subcommand right now, which is generate. Here's the help documentation.

# Print the help
pplg generate --help

Options:
  -c, --count       number of levels to generate                    [default: 1]
  -s, --seed        random seed for generation                          [string]
  -d, --difficulty  starting difficulty                             [default: 1]
  -x, --export      Export the level to a given path                    [string]
  -v, --verbose     print each level in ascii         [boolean] [default: false]
  --help            Show help                                          [boolean]
# EXAMPLE: Generate and print to the command line
# NOTE: You may need to make your font smaller (or turn off wrapping) to see
# the whole thing
pplg generate --difficulty 2 --verbose

# EXAMPLE: Generate and save 5 levels to an export folder
pplg generate --difficulty 5 --count 5 --export ./levels

Development

# Fetch dependencies
npm install

# Link to your PATH
npm link