View on GitHub

PNG2NAM

A tool for use in NES game development. It can take a PNG input image and convert it to a Nametable file along with the supporting CHR and PAL files.

Download this project as a .zip file Download this project as a tar.gz file

Recommended Supporting Software


How to Compile and Run

Use the included compile.bat file to compile the project (requires javac to be on the path) and the run.bat to run it (requires java to be on the path). Note that both scripts require Java 9 or newer.

How to Use

Basic Usage

  1. Use PNG2NAM to select an input png image.
  2. Select whichever options you'd like.
  3. Click the 'Export' button. Three files will then be generated: a CHR, PAL, and NAM file respectively. The NAM file will also automatically open allowing you to see the image as it will appear in your NES game (assuming you have NES Screen Tool or some other viewer installed).

    Example Output (obtained by using the included exampleInputImage.png for step 1 and the default options for step 2): PNG2NAM Example Output Screenshot

Description of Options

Limitations

(the following limitations are due to NES graphics capabilities)