Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
freem committed Aug 8, 2022
1 parent a90145e commit 176b28e
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# menubg
`menubg` is a tool for converting menu background images from AKI Corporation's
wrestling games on Nintendo 64. It can also generate new background image files
for use in the game.

## Usage
The program has two modes:
1) Convert a list of binary files that make up a menu background into a PNG file.
2) Convert a PNG file into binary files that make up a menu background.

### Background Types
It is important to note the menu background format changed between games.
Properly converting data requires understanding the difference between the
different background types.

The "`old`" format is found in WWF WrestleMania 2000. It consists of ten
slices, 320x24 pixels each.

The "`new`" format is found in Virtual Pro-Wrestling 2 and WWF No Mercy.
Each chunk is 64x30 pixels, and there are 40 chunks in total.

### List Conversion
`menubg -l LIST_FILE -t BG_TYPE [-d OUT_DIR]`

where...
- `LIST_FILE` is the path to a text file containing a list of files making up the menu background.
- `BG_TYPE` is one of "`old`" or "`new`" (no quotes)
- `OUT_DIR` is the optional output directory. The directory *must* already exist.

### PNG to Menu Background
`menubg -p PNG_FILE -t BG_TYPE [-d OUT_DIR]`

where...
- `PNG_FILE` is the PNG format file to convert to a menu background.
- `BG_TYPE` is one of "`old`" or "`new`" (no quotes)
- `OUT_DIR` is the optional output directory. The directory *must* already exist.

The PNG file *must* be 320x240 pixels, and it *must* have a 16-color palette for
conversion to work properly.

## License
This program is licensed under the Unlicense. See the `UNLICENSE` file for more information.

This program uses LodePNG, which has a different license. Please see `lodepng.h` for more information.

0 comments on commit 176b28e

Please sign in to comment.