Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.44 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.44 KB

gimp-megadrive-export

Export Sega Megadrive/Genesis tiles from Gimp

This is a plug-in for Gimp for exporting images as 8x8 tiles for Sega Genesis/Megadrive as asm68k source files.

Installation

  • Copy gimp_megadrive_export.py to your Gimp plugins folder. To find out its location, run Gimp and go to Edit > Preferences > Folders > Plug-ins

  • (Skip if you're using Windows) Change file permissions by adding executable bit: chmod +x gimp_megadrive_export.py

  • Restart Gimp

Use

  • Make sure your image is indexed, with no more than 15 colors (may have transparency), use Image > Mode > Indexed.. to convert;

  • Go to File > Export As.., in "All export images" select "Asm68k files (*.asm)", click "Select File Type (By Extension)", then "Asm68k files";

  • Click "Export";

  • Click "Ok" in file-asm-save dialog box. You can choose whether to use COLRW macro (see below) or not, whether to merge duplicate palette colors, and choose export order of the tiles;

  • Done. If one or both of your image's dimensions is not a multiple of 8, the plugin will show a dialog box informing of unexported pixels.

COLRW is an asm68k macro that I use to improve readability of exported palettes. With it you can see palette RGB values (0 - 7) in the code, instead of color components packed into hexadecimal words.

To do

  • Tile optimization: add an option to skip repeating tiles