Aperture Menu Format

From Portal Puzzle Wiki

Jump to: navigation, search

The Aperture Menu Format is a file format that is denoted by the extension AMF. This file determines what buttons are displayed for each APF image file, along with what colors the image is given. So far, there's been one AMF file for each APF file, meaning that there's always a menu with every picture. Based on the two files received with the Aperture Image Format program, the format for an AMF file looks like this:

APERTURE MENU FORMAT (c) 1985
1,1,3
30,24,"Next","SIGN"
0,0,"",""
0,0,"",""
0,0,"",""
0,0,"",""
0,0,"",""
0,0,"",""
0,0,"",""
30,2,"Exit","EXIT"
APERTURE MENU FORMAT (c) 1985
12,2,2
0,0,"",""
0,0,"",""
0,0,"",""
0,0,"",""
0,0,"",""
0,0,"",""
0,0,"",""
0,0,"",""
30,2,"Exit","EXIT"

[edit] File format

The file itself has the same format as a comma seperated file. The lines have different meaning though. Ignoring the copyright line, the first line has three color information numbers, describing first background color, then foreground color and finally the color being used in the LINE command in the program.

The remaining lines are for the menu buttons on the given image. There's room for 9 menu buttons, and the line number the button is on determines the number you'll have to press on your keyboard for the action to take place, from 1-9. The Exit button is always on line 9 in the above examples, thus meaning you have to press 9 to exit. For each individual line, the four columns have this meaning:

  1. X coordinate
  2. Y coordinate
  3. Label
  4. Command ("EXIT" means closing, everything else denotes the file name of an APF file that clicking this button goes to)
Personal tools