Big Bucket Software you like to use
The latest
November 8th, 2005

As you can see from my postings, text has been the magic word lately. I had no idea how hard it would be! Reading in SCUMM character sets, that was the easy part!

Up front, without thinking about it to hard, it seemed easy enough to write a class that would allow me to start rendering text to the screen. For example:

TextWriter writer(font, canvas);
    "Hello Bernard, I've been expecting you...",
    actor.y() - actor.height());

Would write the text, Hello Bernard- above the actor. So now the issues…

  • What if the text was two or more lines?
  • How do I centre the text above the actors head?
  • What if the actor is at the edge of the screen? How do I stop the text from falling off the edge?
  • How do I adjust the colour of the text?

I’ve resolved all of the issues bar the one about colour. I’m still racking my brains about that one.

When I get the actor to respond to signals, (and not just have a fixed block of text above his head all the time) I’ll post a new binary.