picotron is in early alpha -- it doesn't seem to have a sprite editor yet but it does support sprites in a particular format, so I threw together this aseprite exporter.
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 rescan scripts)
- 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 then the closest color in your palette will be used for each pixel
- launch this script, press "Export" to copy to clipboard. (alt-e 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.
- 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: fixed a bug where images with empty space around them would not export correctly
- 2024-03-17: here's a tool for the other end, to import a spritesheet into picotron: https://www.lexaloffle.com/bbs/?tid=140800