pancelor / aseprite-puzzlescript-export

aseprite script to export tiles as puzzlescript sprites
5 stars 2 forks source link
aseprite puzzlescript

Aseprite PuzzleScript Export

A script for Aseprite that exports images as PuzzleScript sprites.

Video example

pic.twitter.com/0x6qW3dZLq

Example

aseprite screenshot

This exports as:

aseprite1
#e5e5e5 #cccccc
.....
..0..
.000.
.001.
.011.

aseprite2
#ffffff #f7e26b #eb8931 #be2633
.000.
.0102
00003
0000.
.2.2.

aseprite3
#44891a #a3ce27 #2f484e
...0.
.0100
00000
.0102
...0.

aseprite4
#44891a #2f484e
.....
00000
01000
00010
.....

Installation

Save PuzzleScriptExport.lua to your Aseprite scripts folder (File > Scripts > Open Scripts Folder)

Usage

If you select a rectangle in your image and then press the "Export" button, only the tiles inside that rectangle will be exported.

Export Settings

(why would you want non-5x5 sprites? there are PuzzleScript forks out there that allow differently-sized sprites)

Other notes

Slices!

Named slices are supported.

aseprite screenshot

Transparent Sprites

This script will consider any color with alpha value 0 as transparent. Make sure the layer you're exporting from is a "Layer", not a "Background". (Right click on a background layer > Convert To > Layer)

Feature Wishlist

I probably won't get around to adding these, but I'll collect them here: