Editing Research:Traditional Capcom
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 12: | Line 12: | ||
[[Image:Cps2hitboxanatomy.png|250px|thumb|right|Properties of Capcom radial rectangles.]] | [[Image:Cps2hitboxanatomy.png|250px|thumb|right|Properties of Capcom radial rectangles.]] | ||
With the exception of the Warzard and Street Fighter III Series, the hitboxes are radial rectangles, defined by an X radius, a Y radius, an X pos, and a Y pos. The X and Y radii are unsigned bytes, whereas the X pos and Y pos are signed bytes. This means that all lengths and heights are effectively even, though an element with a nonzero X radius and a Y radius of 0 will yield a hitbox that is 1px in height. Likewise, an element with a nonzero Y radius and an X radius of 0 will yield a hitbox that is 1px in width | With the exception of the Warzard and Street Fighter III Series, the hitboxes are radial rectangles, defined by an X radius, a Y radius, an X pos, and a Y pos. The X and Y radii are unsigned bytes, whereas the X pos and Y pos are signed bytes. This means that all lengths and heights are effectively even, though an element with a nonzero X radius and a Y radius of 0 will yield a hitbox that is 1px in height. Likewise, an element with a nonzero Y radius and an X radius of 0 will yield a hitbox that is 1px in width. Thus, the unit hitbox for most traditional Capcom games is a 2β2 rectangle with an X radius of 1, a Y radius of 1, an X pos of 0, and a Y pos of 0. When translated to L,T,R,B coordinates, the values are -1,-1,1,1. | ||
<br clear=all> | <br clear=all> |