This is an extension for Aseprite that adds import and export support for .jsp sprite packs and .jft fonts.
To install, download "jspedit.aseprite-extension" from itch.io. If it doesn't associate with Aseprite automatically, use Edit > Preferences > Extensions > Add Extension.
To install from source, copy this directory into the Aseprite extension directory:
- Edit > Preferences > General > Locate Configuration File
- Enter or create the
extensionsdirectory. - Copy this directory there, such that
extensions/jspedit_aseprite/package.jsonexists. - Restart Aseprite.
The plugin adds a preset palette named "Dr. Lunatic" to the preset palette list. This should generally be used when authoring JSP and JFT files. Exporting will convert the image to this palette.
Location: File > Import > Import JSP or JFT
Once imported, the origin will be indicated by the center of the green slice.
Location: File > Import > Import JSP or JFT
Location: File > Export > Export JSP
Only visible layers will be exported.
The slice tool (Shift+C) can be used to create a slice to set as the origin point. The origin point of the JSP file will be the center of the selected slice on the first frame, due to Aseprite API limitations.
Location: File > Export > Export JFT
Only visible layers will be exported.
- First character code: The decimal ASCII code of the character in the first frame.
- Usually
33for!. - Following frames will be assigned to the next ASCII character (
", then#, and so on) until the last frame of the sprite. - The maximum number of characters in a font is 128.
- Usually
- Space width: the number of pixels wide a space should be.
- Gap between characters: the number of blank pixels between adjacent characters.
- Line height: the number of pixels to descend when going to a new line.
- Usually a bit more than the height of the sprite.
- Not all game screens use this number - it may be hardcoded in some places.
The maximum character sprite size is 255x255. The maximum space width, gap between characters, and line height is 255.