Make "demo2d.elf" work.
Posted on 2005-08-31 00:00:00
This time I'll be working on making the next demo in this series work properly.

This one is based around adding font support to his framework. All characters in a font is stored in a texture and the coordinates of one character in this font are taken from a table stored in memory.

It seems to use different fonts in the demo. It also seems to use some dirty trick with alpha blending to modify the overall color of the font.

Right now, if I try running it, it gets stuck in the text printing function's loop forever because the LB instruction isn't implemented yet. That's what it gives:


Screenshot #000006
demo2d.elf running on Purei!


In nSX2, it seems to be working, but the uber long dead loop the programmer used to introduce delays in the demo kicks in and it's hard to see more without changing the demo binary a bit... Something I've had to made to speed up things in the last demo too.


Screenshot #000007
demo2d.elf running on nSX2


By the way, all these demos are available on ps2dev.

Sattelite tasks
- Use a delegate/event system for FPS counting and already existing events.
- Add the actual FPS counter.