Giter VIP home page Giter VIP logo

p8's Introduction

p8

NPM Version NPM Downloads

๐Ÿ‘พ PICO-8 dependency manager

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


Features:

  • Share code and sprites (via github or any file host)
  • Use require() to use modules in your own carts
  • Code in any IDE you want
  • Auto-reload carts on save

Installation

Download the executable

You can grab the executable for your platform from releases page โ†’

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

NPM

Or you can use good old npm

npm i -g p8

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

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 โ†’.

If you want more examples, check out the examples โ†’

p8's People

Contributors

jozanza avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.