Skip to content
/ p8lua Public

This script helps developing cartridges for Pico-8, a retro fantasy console. http://www.lexaloffle.com/pico-8.php

License

Notifications You must be signed in to change notification settings

sulai/p8lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

p8lua - write code for Pico-8 in an external editor

This script helps developing cartridges for Pico-8.

The basic concept is: you edit plain .lua files in your favourite external editor, and when ever you save the .lua file, the script will notice the file change and merge the code back into the .p8 file, so you are instantly ready to use ctrl-R in Pico-8 to reload the cartridge and test your code.

p8lua - can do some pre-processing, if you want

There are some pre-processor commands you can use, for example:

-- copies library.lua into your code
--#include library

-- cut out debug code when releasing
--#define debug
--#if debug
print("cpu usage "..stat(1),0,0)
--#end debug

See the python script for a more in-depth and up to date documentation.

For now, p8lua works for linux only, because it uses the python module pyinotify for identifying file changes. I'm happy to accept pull requests if some one can port and test it for windows.

About

This script helps developing cartridges for Pico-8, a retro fantasy console. http://www.lexaloffle.com/pico-8.php

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages