Home

Awesome

p8

<!-- [![Build Status](https://api.travis-ci.org/jozanza/p8.svg?branch=master)](https://travis-ci.org/jozanza/p8) -->

NPM Version NPM Downloads

👾 PICO-8 dependency manager

Import lua/moonscript modules, spritesheets, and automatically reload your carts as you code.

<br />

Features:

<br />

Installation

Download the executable

You can grab the executable for your platform from releases page →

<sup>- On macOS or linux, you may want to copy the executable into /usr/bin.</sup><br /> <sup>- On windows, you may want to add the executable to your PATH.</sup>

NPM

Or you can use good old npm

npm i -g p8
<br />

Getting Started

You can be up-and-running in a few quick steps.

1. Initialize your project

Create and/or adds basic fields to p8.json.

p8 init

2. Add Dependencies

Add .lua, .moon, .png, .jpg, or .gif files.

p8 add [file|url...]

3. Run your cartridge

Use the --watch flag to automatically reload whenever the entry-point is saved. This command will automatically install and build if you haven't already.

p8 run
<br />

Usage

Usage: p8 <command> [options]

Commands:
  p8 add [file|url...]  add modules as "dependencies" or "gfxDependencies" in p8.json.
  p8 build              outputs a cart (.p8 file)
  p8 init               initialize the project
  p8 install            install dependencies listed in p8.json to ./pico_modules
  p8 run                runs a .p8 cartridge (PICO-8 switches can be passed after a trailing --)
Options:
  --version  Show version number
  --help     Show help

If you want a detailed walkthrough, read Getting Started with p8 →.<br />

If you want more examples, check out the examples →