Skip to content

Commit

Permalink
smx-files.md: Signed ints for sprite centre
Browse files Browse the repository at this point in the history
I think that the sprite centre values have to be interpreted as signed integers. For example, `u_vil_female_lumberjack_decayA_x1.smx` has a number of frames for which the sprite centre is outside of the graphic.
  • Loading branch information
puzzlepaint committed Mar 20, 2020
1 parent 9f13a91 commit a897230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/media/smx-files.md
Expand Up @@ -105,8 +105,8 @@ Length | Type | Description | Example
---------|--------|----------------------------|-------- ---------|--------|----------------------------|--------
2 bytes | uint16 | Width of image | 168, 0x00A8 2 bytes | uint16 | Width of image | 168, 0x00A8
2 bytes | uint16 | Height of image | 145, 0x0091 2 bytes | uint16 | Height of image | 145, 0x0091
2 bytes | uint16 | Centre of sprite (X coord) | 88, 0x0058 2 bytes | int16 | Centre of sprite (X coord) | 88, 0x0058
2 bytes | uint16 | Centre of sprite (Y coord) | 99, 0x0063 2 bytes | int16 | Centre of sprite (Y coord) | 99, 0x0063
4 bytes | uint32 | Length of layer in bytes | 1848, 0x00000738 4 bytes | uint32 | Length of layer in bytes | 1848, 0x00000738
4 bytes | uint32 | Unknown | 950, 0x000003B6 4 bytes | uint32 | Unknown | 950, 0x000003B6


Expand Down

0 comments on commit a897230

Please sign in to comment.