|
|
Line 41: |
Line 41: |
| |Palette ID | | |Palette ID |
| |2 | | |2 |
| |Vertical Reverse | | |[[VDP_Sprites#Size|Vertical Reverse]] |
| |1 | | |1 |
| |Horizontal Reverse | | |[[VDP_Sprites#Size|Horizontal Reverse]] |
| |1 | | |1 |
| |Tile ID | | |Tile ID |
Revision as of 10:19, 3 April 2012
Sprites
Display Position
Attribute Table
The Sprite attribute table is defined via the vdp register 0x5.
Each sprites require 4 words.
Word
|
Description
|
0
|
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Def |
Unused
|
Vertical Position
|
|
1
|
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Def |
Unused
|
Horizontal size
| Vertical size
| Unused
| Link
|
|
2
|
|
3
|
Bit |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Def |
Unused
|
Horizontal Position
|
|
Size
16 different sprite size are selectable
The relationship between the tile id and the placement follow a top-left to bottom-right order.
|
V = 0
|
V = 1
|
V = 2
|
V = 3
|
H = 0
|
|
|
|
|
H = 1
|
|
|
|
|
H = 2
|
|
|
|
|
H = 3
|
|
|
|
0
|
4
|
8
|
C
|
1
|
5
|
9
|
D
|
2
|
6
|
A
|
E
|
3
|
7
|
B
|
F
|
|
Link