namuol / pico8utils

PICO-8 UTILS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#PICO-8 UTILS

This is a set of utilities made for the 0.1.2 .p8 PICO-8 file format.

They were written against Lua 5.3, but will most likely run correctly against Lua 5.x.

All of these scripts were made with the unix philosophy.

For pico2png.lua and png2pico.lua, you need to use luajit, magick (luarocks install magick) and have imagemagick installed.

For pack.lua, you need to have lfs installed (luarocks install luafilesystem)

##Example usage:

Extract foo.p8's Lua code from foo.p8:

lua ./pico2lua.lua foo.p8 > foo.lua

Extract foo.p8's gfx as a png from foo.p8:

lua ./pico2png.lua foo.p8 > foo.png

these examples include backup

Update foo.p8's Lua code with foo.lua:

cp foo.lua foo.backup.lua && luajit ./png2pico.lua foo.lua foo.backup.p8 > foo.p8

Update foo.p8's spritesheet gfx with foo.png:

cp foo.p8 foo.backup.p8 && luajit ./png2pico.lua foo.png foo.backup.p8 > foo.p8

About

PICO-8 UTILS

License:MIT License


Languages

Language:Lua 100.0%