12/23/2024: Localization News - Team Innocent

PC-FX Localization for Team Innocent is released, a pre-Christmas gift!! In a twist, it feels like the NEC PC-FX got more attention in 2024 than any other time I can remember! Caveat: The localizers consider the "v0.9" patch a BETA as it still faces technical hurdles to eventually subtitle the FMV scenes, but they consider it very much playable.
github.com/TeamInnocent-EnglishPatchPCFX
x.com/DerekPascarella/PCFXNews
Main Menu

Text on the PCE

Started by spenoza, 05/16/2012, 01:15 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

spenoza

Is text display sprites, tiles, or its own thing?

OldRover

It's normally tiles, but it can be either/or, sometimes even both.
Turbo Badass Rank: Janne (6 of 12 clears)
Conquered so far: Sinistron, Violent Soldier, Tatsujin, Super Raiden, Shape Shifter, Rayxanber II

spenoza

But there is no separate text display function. OK, just checking to make sure. What does HuC use by default for the basic text routines? Tiles?

OldRover

No, there is no separate text display function. HuC uses tiles stored in a dedicated area of VRAM. Text display is generally a user or library function. The CD BIOS may have some text functions... it has font storage, but that's all I know about, and you need assembly to access it.
Turbo Badass Rank: Janne (6 of 12 clears)
Conquered so far: Sinistron, Violent Soldier, Tatsujin, Super Raiden, Shape Shifter, Rayxanber II

Arkhan Asylum

The "text display" function, just puts background tiles where you tell them, and it knows where the system font (or font you tell it) is stored in VRAM.


It's your job to store the font properly so that the library function properly puts the text where you tell it.
This "max-level forum psycho" (:lol:) destroyed TWO PC Engine groups in rage: one by Aaron Lambert on Facebook "Because Chris 'Shadowland' Runyon!," then the other by Aaron Nanto "Because Le NightWolve!" Him and PCE Aarons don't have a good track record together... Both times he blamed the Aarons in a "Look-what-you-made-us-do?!" manner, never himself nor his deranged, destructive, toxic turbo troll gang!

cabbage

Yeah, HuC's text-output functions (e.g. put_number, put_string, etc.) just update the background/tiles table with your font's tiles.

Don't forget that you can change a sprite's priority to make it appear underneath the background (and thus the HuC-libraries-outputted text), but you'll only be able to see through the color-0 part of your tiles... so, not really useful in most applications, but it can come in handy and is worth remembering. (Use spr_pri(0), if I recall correctly, to have a sprite appear underneath the background)

For truly sprite-based text, I suppose it's simple enough to just reload some font data into your sprite ram area and set up a few sprites--or something similar. I guess this mostly comes up on titles, credits, stuff like that, as well as your on-screen display for score/etc. Since this sprite text can usually be kept to a minimum, it's generally easy enough to manage with your own code. I don't think the overhead from a flexible sprite-based text output library would really be worthwhile on PCE... maybe for subtitling cut-scenes in games or something, heh.