picotron is out! importing sprites is still a bit tricky, so I built this script to help, along with this picotron cart
this script works great for pico8 too -- I use it often
you'll need Aseprite to use this.
- save this script to your aseprite scripts folder (File > Scripts > Open Scripts Folder) then reopen aseprite (or click "Rescan Scripts")
- (optional) edit
local autocopy
in the script, based on your operating system. if you set this up, the script will automatically write to your clipboard when it's time to copy something
- (optional) edit
- load an image with the picotron palette (or pico-8 extended palette)
- (optional) change the image's color mode to "indexed" (Sprite > Color Mode > Indexed)
- if you skip this step, picotron will find the "closest" color for each pixel when you import. (but, the "closest" algorithm isn't very smart)
- be sure aseprite's palette is in the right order! you can load the palette (above) into aseprite and then press the "remap colors" button that pops up
- launch this script, press "Copy" to copy to clipboard. (alt-c should work too)
- if there is a current selection, it will only copy that region
- leave the script window open to copy again later
- you can choose an export format: "pod" (for picotron) or "gfx" (for picotron or pico8)
- the string in your clipboard should look something like this:
- gfx format:
[gfx]08080000000000000000000000000700707007777007717177700777777000607070[/gfx]
. This can be pasted into the pico8 or picotron sprite editors. - pod format:
--[[pod,pod_type="image"]]userdata("u8",8,8,"00000000000000000000000000000000000000000000000000070000070007000007070707000007070107010707070000070707070707000000060007000700")
. This can be pasted into the picotron sprite editor, or pasted into code, or pasted in a text file or a--[[multiline code comment]]
(it will be drawn!) For other options, see the picotron alpha release notes.
- gfx format:
- 2024-12-18: add
autocopy
, now that aseprite allowspopen
- 2024-10-22: tweak instructions, link to updated palette
- 2024-04-07: fix bug with merge-all-layers
- 2024-03-23: add support for pod format (this allows for images larger than 256x256)
- 2024-03-22: fix a bug where images with empty space around them would not export correctly
- 2024-03-17: picotron is out! update script and link to sprimp (a tool for importing spritesheets in picotron)
- 2023-01-01: initial release