Fix colors of Emerald static sprites - #274
Open
Delgan wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Final cleanup pass for the Gen 3 sprites.
Again, I re-generated the sprites from
pokeemeraldusinggbagfx. This time, however, there is no equivalent on Bulbapedia (the sprites there are animated), thus I could not use them as reference.The tricky part with Pokémon Emerald is that the front sprites consist of two frames (for the animation) in one image. So, we have to crop it correctly first before calling
gbagfxto generate the.png. Note thatfront.pngin thepokeemeraldsources must be ignored, it's not the in-game sprite. Also, we cannot simply extract the frame from the animated APNG because dimensions are not always 64x64.I compared the output to the static frames of
ruby-sapphireand found out that most of them were byte-wise equal. Besides, I also extracted last frame of a few animated sprites and verified that it was pixel-wise equal to the generated static sprite. Therefore, I'm pretty confident the process is correct.For the back sprites, the conversion was straightforward, and most of the sprites in the repository were already correct.
Script used as reference, in case I need it again in the future.
Source code