AMOS Sprite Bank
From Just Solve the File Format Problem
(Difference between revisions)
m (typo) |
(Extracted format details from "AMOS BASIC tokenized file" article) |
||
Line 12: | Line 12: | ||
== Identification == | == Identification == | ||
Files begin with ASCII characters "<code>AmSp</code>". | Files begin with ASCII characters "<code>AmSp</code>". | ||
+ | |||
+ | == AMOS Sprite/Icon Bank format == | ||
+ | A sprite bank and an icon bank share very similar attributes. They define graphic data which can be drawn onscreen. They have this format: | ||
+ | |||
+ | {|class="wikitable" | ||
+ | !Field!!Length | ||
+ | |- | ||
+ | |Bank identifier: <samp>AmSp</samp> for sprites (bank 1) or <samp>AmIc</samp> for icons (bank 2) | ||
+ | |4 bytes | ||
+ | |- | ||
+ | |Count of sprites/icons to follow | ||
+ | |2 bytes | ||
+ | |- | ||
+ | |Sprites/Icons. Each sprite or icon has this format: | ||
+ | * 2 bytes: <var>width</var>, in 16-bit words (multiply by 16 to get width in pixels) | ||
+ | * 2 bytes: <var>height</var>, in raster lines (pixels) | ||
+ | * 2 bytes: <var>depth</var>, in bitplanes (1 to 5) | ||
+ | * 2 bytes: hot-spot X co-ordinate | ||
+ | * 2 bytes: hot-spot Y co-ordinate | ||
+ | * <var>width</var> * <var>height</var> * <var>depth</var> * 2 bytes: Amiga planar graphic data | ||
+ | |- | ||
+ | |Color palette: 32 16-bit colors in 0x0RGB form, the Amiga COLORx hardware register format | ||
+ | |64 bytes | ||
+ | |} | ||
== Specifications == | == Specifications == |
Revision as of 20:40, 6 January 2016
AMOS Sprite Bank is a raster image file format associated with the AMOS Professional and Easy AMOS programming languages and compilers for Amiga computers. The format may also be known as Object Bank or Bob Bank.
AMOS Icon Bank is a very similar format.
Note that other types of AMOS files also use .abk filename extension.
Contents |
Identification
Files begin with ASCII characters "AmSp
".
AMOS Sprite/Icon Bank format
A sprite bank and an icon bank share very similar attributes. They define graphic data which can be drawn onscreen. They have this format:
Field | Length |
---|---|
Bank identifier: AmSp for sprites (bank 1) or AmIc for icons (bank 2) | 4 bytes |
Count of sprites/icons to follow | 2 bytes |
Sprites/Icons. Each sprite or icon has this format:
| |
Color palette: 32 16-bit colors in 0x0RGB form, the Amiga COLORx hardware register format | 64 bytes |
Specifications
Software
Sample files
- http://sourceforge.net/projects/javaamosabk/files/abk/ (e.g. Mouse.Abk)
- teletube_h.abk