Samuel85 / Abbey

Modern implementation of the classic spanish game: "La abadía del crimen" or "The Abbey of Crime", for Linux, RG350, PS Vita, and Android.
20 stars 3 forks source link

"COMPLETAS" text is not showing properly #2

Open luzbel opened 3 years ago

luzbel commented 3 years ago

Miss that patch from VigasocoSDL's latest version https://github.com/luzbel/VigasocoSDL/commit/a5ece07e0bdeb99cb2c28c0bc139e165feee6597

Samuel85 commented 3 years ago

Well for the moment I made a small class to replace the whole set of characters in the rom to use True Type Fonts. It's far better and will make it easier to include new languages, but I still need to understand how the original code works to just replace it with my custom printf function.

luzbel commented 3 years ago

Feel free to ask about the code here. I don't have all the knowledge original author (Manuel Abadia) has , but definitely can help here.

Main issue here is text is not mapped character by character. In the original cpc code, "-" character is used to display "PL" on screen. So, the text in ROM is not "COMPLETAS" but "COM-./>"

If you feel confortable with spanish comments (don't you?) , there is a detailed explanation in the commmit.

If you are going to translate to TrueType Fonts, keep in mind: 1) maybe you need to modify texts and change "COM-./>" to "COMPLETAS" and modify code to avoid special treatment for those special characters 2) be sure you have enough space in screen. "COMPLETAS" doesn't fit with the embedded font displaying character by character