Skip to content
Permalink
Browse files

smx-files.md: Signed ints for sprite centre

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 a897230f900b5862a80617c58fda509a777c3e1d
Showing with 2 additions and 2 deletions.
  1. +2 −2 doc/media/smx-files.md
@@ -105,8 +105,8 @@ Length | Type | Description | Example
---------|--------|----------------------------|--------
2 bytes | uint16 | Width of image | 168, 0x00A8
2 bytes | uint16 | Height of image | 145, 0x0091
2 bytes | uint16 | Centre of sprite (X coord) | 88, 0x0058
2 bytes | uint16 | Centre of sprite (Y coord) | 99, 0x0063
2 bytes | int16 | Centre of sprite (X coord) | 88, 0x0058
2 bytes | int16 | Centre of sprite (Y coord) | 99, 0x0063
4 bytes | uint32 | Length of layer in bytes | 1848, 0x00000738
4 bytes | uint32 | Unknown | 950, 0x000003B6

0 comments on commit a897230

Please sign in to comment.
You can’t perform that action at this time.