How to use NesFishy

From a blank project to a ROM running in an emulator. Each part stands on its own, so jump to what you need. Hovering over almost any button in NesFishy also shows a tip.

Getting started

  1. Download the zip and unzip it anywhere, for example to a folder in Documents.
  2. Run NesFishy.exe. Nothing is installed. Keep the assets, templates and cc65 folders next to it.
  3. NesFishy opens with an empty project. Settings, workspaces and themes are saved next to the exe, so you can carry the folder on a USB stick.
The NesFishy window with the Tile Editor, Layers, Nametable, Tileset and Palettes panels
The default layout: Tile Editor and Palettes on the left, the Nametable in the middle, the Tileset on the right.

The main panels

  • Tileset: the 256 tiles of the current CHR bank. Click to pick a tile; 1×1 to 4×4 picks a block.
  • Tile Editor: draw on the picked tile or block, pixel by pixel.
  • Nametable: the 32×30-tile screen. Place tiles here to build a background. The tabs beside it are the Sprite editor, the Map and the Screens list.
  • Palettes: the four background and four sprite palettes, and the NES master palette below them.
  • Layers and Timeline: paint layers, and sprite animation frames.

Every panel can be dragged by its tab to dock it somewhere else, stack it as a tab, float it, or move it onto another monitor. Workspaces > Save Workspace keeps a layout; Workspaces > Default puts everything back. More panels are in the View menu.

Themes. NesFishy starts in the Grey theme. Workspaces > Themes switches to Dark, Light, NES Blue or High Contrast, and Theme Settings lets you change any color and save your own theme.

Projects and files

A NesFishy project (.nfp) keeps everything: all CHR banks with their layers, palettes, screens, the map, sprites, game objects and game options. File > Save (Ctrl+S) saves it.

  • Open (Ctrl+O) also reads plain NES files: .chr, .pal, .nam, .rle, .lz4, NEXXT sessions (.nss) and ROMs (.nes). You can also drag files onto the window.
  • File > Open Recent lists your last 10 projects. File > Set Projects Folder picks where open and save dialogs start.
  • Checkpoints: F5 saves a snapshot of everything, and F9 brings it back. This is handy before trying something risky.
  • Undo (Ctrl+Z) covers every change. View > Undo History lists the steps; click one to jump there.

Palettes

The NES draws every 8×8 tile with one palette of 4 colors. There are 4 palettes for the background and 4 for sprites. Color 0 of the background palettes is shared: it is the screen's background color.

  1. In the Palettes panel, click a color slot in one of the palettes.
  2. Click a color in the master palette below to put it in that slot.
  3. The palette with the outline is the one you draw with. Q / W step through the palettes, and 1–4 pick a color.

Presets saves and loads palette sets. The palette list beside the panel keeps named full sets (4 background + 4 sprite) you can switch between. Fades previews fading to black or white the NES way, and Cycles sets up color cycling.

Drawing tiles

  1. Click a tile in the Tileset. For a bigger area, pick 2×2, 3×3 or 4×4 there, or press S in the Tile Editor to cycle 8 / 16 / 24 / 32 pixels.
  2. Choose a tool: pencil B, spray J, fill F, picker I, line L, rectangle U, ellipse O, text T.
  3. Draw with the left mouse button for the primary color and the right button for the secondary color. X swaps them.
  • Brush size: + / - or Ctrl + mouse wheel. Zoom and pan: mouse wheel and middle-drag.
  • Selections: M cycles rectangle, ellipse, lasso and magic wand. Drag inside a selection to move it, drag a corner to scale, or drag the round knob to rotate. Enter applies and Esc cancels.
  • Layers: add layers in the Layers panel to keep parts separate. Color 0 is transparent on layers. Saving a .chr flattens them; the project keeps them.
  • Flip and rotate: H, V and R. Swap tiles in the Tileset with Ctrl + middle-drag; the screen is updated so it still looks the same.
  • The floating toolbar (N brings it to the mouse) has every drawing tool. Slots with a corner mark hold more tools: click and hold to see them.
Watch the warning. The Tile Editor lists tiles that are used more than once on screen. Painting one of them changes every copy.

Building a screen

A screen (nametable) is 32×30 tiles. Each 16×16 area uses one palette: this is the attribute grid.

  1. Pick a tile or block in the Tileset.
  2. Click or drag on the Nametable to place it. A preview shows what will land where.
  3. Right-click a tile on the Nametable to pick it up, along with its palette.
  4. Press A to switch to attribute mode and paint palettes onto the 16×16 areas. Press A again to go back to tiles.
  • Paint pixels (a toggle in the Nametable toolbar): draw freely across tiles as if it were one picture. NesFishy makes, reuses and merges tiles for you and shows how many are left.
  • Text: with the Text tool, click on the Nametable and type. View > Text Font sets which tile each letter uses.
  • Attribute clash check (the warning button on the Nametable) marks tiles sitting in an area whose palette doesn't suit them.
  • Nametable > Tile Cleanup finds unused, duplicate and similar tiles, merges them and compacts the bank. Use it when you run out of tiles.

Maps, screens and metatiles

The Map

The Map tab holds up to 16×16 screens. Click a screen to edit it on the Nametable; the arrows in the Nametable toolbar step to the neighbours. In the game templates, the Map is your level layout.

The Screens list

The Screens tab keeps extra named screens, such as a title screen or a game over screen. Right-click an entry to give it a palette set, or to say what it is In the Game: a level, the title, the game over screen or the ending.

Metatiles

  1. Open the Metatiles tab beside the Tileset.
  2. Make a metatile from the Tileset selection, capture blocks from the Nametable, or collect every distinct block on the screen.
  3. Click a metatile, then click on the Nametable to stamp it. It snaps to its grid, and only its own outline shows. Right-click on the Nametable picks one up.

Nametable Layers

View > Nametable Layers adds layers on top of a screen. Bake layers hold stamps and paths that become real tiles later. Object layers hold enemies, items and the player: the things a game spawns. Each screen has its own layers.

Importing images

File > Import Image (Ctrl+I), or drag a picture onto the window. NesFishy reads PNG, BMP, GIF, JPEG, TGA and Aseprite files. Blown-up pixel art is detected and read back at its real size.

  • As a screen: the Screen tab turns a picture into a nametable. It fits the 4 background palettes and every attribute area, stores identical tiles once, and can merge similar tiles to fit a tile budget. Write to nametable applies it in one undo step.
  • As a sprite: the Pixels tab reduces the image to one palette's 4 colors. Paste it into the Tile Editor, or make a new sprite from it (a sprite sheet can be split into one frame per cell).
  • Aseprite files can become a whole animated sprite: layers, frame times and tags come along.

Sprites and animation

  1. Open the Sprite tab (beside the Nametable) and make a new sprite in the Sprites list. Pick a size, for example 16×16 or 16×24.
  2. Draw with the same tools as tiles. Each layer uses one sprite palette, so stack layers for more colors.
  3. Add frames in the Timeline. Each frame has a duration in NES frames (60 per second). Space plays, and , / . step through frames.
  4. Set the origin (the crosshair button): exported positions are relative to it, usually the feet.

NesFishy cuts every frame into 8×8 or 8×16 hardware sprites automatically, sharing tiles across frames (including flipped copies). The editor shows the boxes and warns when a scanline has more than 8 sprites, which the NES can't show.

The Sprites tab beside the Tileset is the Sprite Manager: every sprite with its size and sprite count, a preview, and the hardware settings (8×8 or 8×16, CHR bank). Build tiles into CHR writes the tiles into the sprite bank.

Game Objects

View > Game Objects turns sprites into players, enemies and pickups. Each object has states (Idle, Walk, Jump...) with an animation, movement and physics, and rules for switching states. Start from a ready-made object with the + button.

Collision (tile properties)

  1. Open the Properties tab beside the Tileset.
  2. Tick the flags to paint, such as Solid, Platform, Ladder or Hazard (you can rename them).
  3. Press Paint, then click tiles in the Tileset or on the Nametable. Right-click clears.

Properties belong to the tile, so every copy of it shares them. The game templates read them: in the platformer the 1st flag is solid, the 2nd is a platform you can stand on from above, the 3rd is a ladder and the 4th hurts.

Exporting for your own code

  • File > Save menu items save the CHR (.chr), palettes (.pal) and nametable (.nam, or neslib RLE / LZ4 compressed).
  • Sprites: in the Sprite Manager, Export .s / .h writes ca65 metasprites and animation tables in neslib format, plus a C header for cc65.
  • Map: export every screen as .bin, as RLE screens with a pointer table, or the whole map as a PNG.
  • Properties: the bank's 256 property bytes, or a collision map of the screens.
  • Images: a screen as PNG, and a sprite animation as GIF or a PNG strip.
#include "sprites.h"   // from Export .s / .h; add sprites.s to your build
const nesfish_anim_frame* step = hero_anim;
unsigned char timer = step->duration;
// every frame:
oam_meta_spr(x, y, step->frame);
if (--timer == 0) { ++step; if (!step->frame) step = hero_anim; timer = step->duration; }

Making a game

NesFishy can put your project into a ready-made game engine and build a real .nes ROM. The engines are 6502 assembly, built with cc65 (included in the download). Mesen, a free NES emulator, runs the result.

The Game menu: Build and Run in Mesen, Build ROM, Game Type, Game Options, Music Files
The Game menu.

One-time setup

  • cc65 is found automatically in the cc65 folder next to NesFishy.exe.
  • Mesen: put Mesen.exe next to NesFishy.exe, or set its path in Workspaces > Settings.

Your first game

  1. Game > Game Type: pick Side-scrolling platformer, Side scroller (a shooter) or Top-down adventure.
  2. Draw your level on the Map. In the platformer, each Map row is a level played left to right.
  3. Paint tile properties so the game knows walls, platforms, ladders and hazards.
  4. Make the player and enemies in View > Game Objects. The ready-made ones (+) are a quick start.
  5. In View > Nametable Layers, add an Object layer to a screen and place the player and the enemies on it.
  6. Optional: a HUD in View > HUD / UI Boxes (Where: Top strip). Numbers named Score, Lives, Health, Coins or Time update by themselves.
  7. Save the project, then Game > Build and Run in Mesen (F6).

Game Options

Game > Game Options shows the options of the current game type: lives, scrolling (sideways, smooth up and down, or flip-screen), the cartridge (NROM or MMC3 for more levels and animated tiles), splits for parallax and wavy water, fades, two players, battery saves and PAL speed. Hover over an option for what it does.

Title, game over and music

  • Make the extra screens in the Screens list and right-click them: In the Game > Title screen, Game Over screen or Ending screen.
  • Game > Music Files takes FamiStudio exports (music and sound effects for the FamiStudio sound engine). Choose which song plays on each screen.

Where the game goes

The game folder sits next to your project, for example MyGame_game. It holds main.s (the engine), the generated data and the .nes file. The engine is copied there once and is yours to change. Game > Open Game Folder opens it. Each template's README.txt explains how it plays and what each option does.

Your own game types. The engines live in templates next to NesFishy.exe, one folder each. Copy a folder to start your own; it shows up in Game Type without a restart, and its template.ini lists its Game Options.

Shortcuts

Press F1 in NesFishy for the full list. Workspaces > Keyboard Shortcuts changes any key.

Ctrl+N / O / SNew, Open, Save All
Ctrl+Z, Ctrl+YUndo, redo
B J F I, hold AltPencil, spray, fill, picker; Alt picks temporarily
L (again: curve)Line, then curve
U / O (again: filled)Rectangle, ellipse; Shift for a square or circle
M (again: next)Selections: rectangle, ellipse, lasso, magic wand
Ctrl+A / Ctrl+D, Enter, EscSelect all, deselect, apply, cancel
1–4, Q / WColor, previous / next palette
XSwap primary and secondary colors
ANametable: tiles / attributes mode
S, GTile Editor size, grid on / off
H V R, DelFlip, rotate, clear
TText tool
NBring the floating toolbar to the mouse
, ., SpaceSprite: previous / next frame, play / stop
F5 / F9Save a checkpoint, restore it
F6Build and run the game in Mesen
Ctrl+IImport an image

Problems

The game doesn't build

Game > Show the Last Build Log shows cc65's messages. Check that the cc65 folder is next to NesFishy.exe, or that its path is set in Workspaces > Settings. A message about too many screens or tiles means the cartridge is full: reuse screens, run Tile Cleanup, or switch to the MMC3 cartridge in Game Options.

The game builds but doesn't start

Put Mesen.exe next to NesFishy.exe or set its path in Workspaces > Settings. The .nes file is in the game folder (Game > Open Game Folder) and opens in any NES emulator.

Sprites flicker or vanish

The NES shows 8 sprites on a line. The Sprite editor marks lines that go over; make sprites narrower or keep fewer on the same height.

I ran out of tiles

A bank holds 256 tiles. Run Nametable > Tile Cleanup to merge duplicates and similar tiles and to compact the bank, or add another bank with + in the Tileset.

The panels are in a mess

Workspaces > Default puts every panel back where it started.

Patch notes. What changed in each version is in the patch notes, and in PATCH_NOTES.txt in the download.