Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

figure out what those 8 bytes in IMG files are for #17

Open
BBQGiraffe opened this issue Sep 6, 2021 · 6 comments
Open

figure out what those 8 bytes in IMG files are for #17

BBQGiraffe opened this issue Sep 6, 2021 · 6 comments

Comments

@BBQGiraffe
Copy link
Owner

IMG entries have 8 bytes after their width and height and before the actual image data, I never bothered figuring out what it was but I guess now is a good time
Screenshot from 2021-09-06 16-57-58

@BBQGiraffe
Copy link
Owner Author

added in the image index to help me out, it seems the numbers are important to what it is, for example the 3rd and 4th byte change at index 310, which happens to be where the monster sprites start
image
image

@BBQGiraffe
Copy link
Owner Author

the last 4 bytes are always 0, don't know why they're present

@BBQGiraffe
Copy link
Owner Author

ok it's only the 3rd and 4th byte that ever change

@BBQGiraffe
Copy link
Owner Author

M for monster?
image

@BBQGiraffe
Copy link
Owner Author

I'm starting to think that byte 0x2 is the milliseconds per frame in animated sprites, because most entries have the same value for 0x2 except in the case of a few animated sprites, which have different values, or this is completely unrelated and I'm just dumb, I'll find out when I program it

@BBQGiraffe
Copy link
Owner Author

It's been almost a year and I still have no idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant