TerryCavanagh / VVVVVV

The source code to VVVVVV! http://thelettervsixtim.es/
Other
7k stars 559 forks source link

Add support for translatable sprites #1031

Closed Daaaav closed 12 months ago

Daaaav commented 1 year ago

Changes:

Language folders can now have a graphics folder, with these files:

This means that the translated spritesheets don't have to contain ALL sprites - they only have to contain the translated ones. When loading them, the game assembles a combined spritesheet with translated sprites replacing English ones as needed, and this sheet is used to visually substitute the normal sprites at rendering time.

It's important to note that even if 32x32 enemies have pixel-perfect hitboxes, this is only a visual change. This has been discussed several times on Discord - basically we don't want to give people unfair advantages or disadvantages because of their language setting, or change existing gameplay and speedruns tactics, which may depend on the exact pixel arrangements of the enemies. Therefore, the hitboxes are still based on the English sprites. This should be basically unnoticeable for casual players, especially with some thought from translators and artists, but there will be an option in the speedrunner menu to display the original sprites all the time.

Legal Stuff:

By submitting this pull request, I confirm that...

Daaaav commented 1 year ago

This is ready for review now!

Included are Dutch translations to test with. And if you'd like to play around with how custom levels interact with this: custom-sprites-localization.zip

Daaaav commented 1 year ago

I just removed the new strings in the language files from both this PR and #1018, because they're now added separately by the final_string_updates branch.