You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(check for decimal integers in first two bytes, check if the rest of the bytes checks out length-wise with the hint, and if yes, use as dimensions hint but discard first two bytes while creating the pixel bitmap)
Add support for sizing multi-frame sprites properly:
(initially, just make sure these work, later add animation/frame-by-frame editing in sprite editor)
Add frame support and frame-by-frame editing for multiframe sprite data in the sprite editor (see above)
Add UI in the code editor to manually specify/adjust the detected dimensions of a sprite without altering its actual source code.
_(possibly store these hints int permanent storage and re-load them once files are reopened, key by environment - filename, declaration signature etc.)
Add binary constant support (these formats also usually hint at sprite dimensions):
Improve sprite dimension detection for unhinted images by trying to guess from usage (search source code, and try to find drawImage commands/similar patterns that use the defined image and specify image dimensions)
The above image sprite is 64 x ( 2_3_(8) ) = /*64x48*/ in dimensions. 64 could be used to guess the width, then the rest can be calculated from byte_count / 64 * 8.
Improve detection of sprite dimensions in the editor.
Add support for inline (non-commented-out) sprite sizes:
(check for decimal integers in first two bytes, check if the rest of the bytes checks out length-wise with the hint, and if yes, use as dimensions hint but discard first two bytes while creating the pixel bitmap)
Add support for sizing multi-frame sprites properly:
(initially, just make sure these work, later add animation/frame-by-frame editing in sprite editor)
Add frame support and frame-by-frame editing for multiframe sprite data in the sprite editor
(see above)
Add UI in the code editor to manually specify/adjust the detected dimensions of a sprite without altering its actual source code.
_(possibly store these hints int permanent storage and re-load them once files are reopened, key by environment - filename, declaration signature etc.)
Add binary constant support (these formats also usually hint at sprite dimensions):
Improve sprite dimension detection for unhinted images by trying to guess from usage
(search source code, and try to find
drawImage
commands/similar patterns that use the defined image and specify image dimensions)Further improve declaration parser
Accept
static
, also bothunsigned char
andbyte
, ignore length specifier between the brackets (or maybe use it for sprite hinting)The PROGMEM pragma could be all over the place, like after the variable name:
Also there might be a space before the
[]
specifier:The text was updated successfully, but these errors were encountered: