I added the text engine to the GBC+ Engine. Had to make some adjustments to make it work with the rest of the engine (disabling HUD, items etc), but it works! It has language support as well, which makes localization a piece of cake. The application menu has a new dropdown list for languages that currently include English and German as an example. Selecting a language changes the "Lang=" string in engine.ini, which tells the engine which ini file to search whenever text becomes active.
Here's what the text_eng.ini file looks like:
;****************************************
; Text Data - English
;****************************************
[Sign1]
Text1=Press ]Enter| to open the inventory and equip items! Use the ]Arrow Keys| to select an item and then press ]Z| or ]X| to equip it!;
Text2=Only the ]Master Sword| has the power to repel [evil|! It is a gift from the goddess {Hylia|. Legends say that a spirit resides inside. Perhaps if {Princess Zelda| can unlock her ]sacred power|, the spirit {Fi| will assist in the battle against [Ganon|.;
The screenshots show the end result. The beauty of this text method is that one can type an extremely long paragraph into a single INI value, and the engine will still parse it to only show 3 lines at a time!
The only problem with localization is the use of special characters which don't currently exist as frames in the text object's animations. Adding Extended ASCII characters to fix this will be a later project.
|
|