GithubHelp home page GithubHelp logo

eiyeron / pico8-gallery Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 1.0 432 KB

A small static site with its own generator containing a few of my Pico-8 sketches

Home Page: https://pico8.retroactive.me

License: MIT License

Python 24.64% JavaScript 35.30% SCSS 21.30% HTML 18.76%

pico8-gallery's Introduction

pico8-gallery

A small static site containing a few of my Pico-8 sketches

Licencing

All my carts are under the Creative Commons CC-BY-SA-NC 3.0 licence.

The source of the site and its generator are under the provided MIT Licence.

How to

Generate

The requirements.txt file will come later, but the project mainly depends on Python3, Jinja2 and pyScss

$ pip install jinja2
$ pip install pyscss

Once those packages are installed, run update.py in the repository's folder. The generator will read the cart listing located at dist/carts/carts.json to generate the index and tags pages. The generator will also generate a Pico-8 plate pico8_plate.html that you need to place in in Pico8's plate folder so you can export your own carts.

Add a cart

Once you placed the generated plate file in the right folder, in Pico-8 instance, type this in the console:

load your_cart
export your_cart.html -p pico8_plate.html

Move then the cart file (saved as a png), the generated html and js file in a dist/carts/your_cart subfolder and add an entry in carts.json:

    /* snip */
    "your_cart": {
        "name": "Its name",
        "info": "The cart's info",
        "tags": ["some", "tags"]
        /* "cart_dir" : "Another file location for the cart picture than the cart index name if needed" */
        /* "index" : "Another file location for the cart html file than the cart index name if needed" */
    },
    /* snip */

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.