Respect sprite X and Y offsets
This makes menus display more correctly, and also fixes trees and other objects on the main map, although it messes up bounds clipping (sigh).
This commit is contained in:
@@ -183,3 +183,21 @@ values:
|
||||
| 405,0,0,{8, 16} | ? |
|
||||
| 405,22,22,{2, 4, 5, 6, 7, 8, 9, 10, 13, 16} | ? |
|
||||
| 405,30,-1,5 | ? |
|
||||
|
||||
## Positioning
|
||||
|
||||
The X-CORD and Y-CORD values would seem to be related, to this, but they are
|
||||
universally set to 0 or -1.
|
||||
|
||||
Far more important are the XOffset and YOffset values for each sprite in the
|
||||
associated .obj files. Taking these into account is enough to draw `Options.mnu`
|
||||
successfully, for instance:
|
||||
|
||||

|
||||
|
||||
## Animation
|
||||
|
||||
This seems to be done by choosing a different sprite to draw every N ticks. They
|
||||
are laid out sequentially, but I don't yet know how to animate them. It's likely
|
||||
to be the same approach as used for other obj files.
|
||||
|
||||
|
Reference in New Issue
Block a user