Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text in Tilengine
#1
Which is the best library to render text in SDL/Tilengine?

I would like to use "\n", ttf fonts, bitmap fonts, different colors, etc...
Reply
#2
I will try SDL ttf, looks good:

https://www.libsdl.org/projects/docs/SDL...L_ttf.html
Reply
#3
(06-08-2018, 05:48 PM)JaumeAlcazo Wrote: Which is the best library to render text in SDL/Tilengine?

I would like to use "\n", ttf fonts, bitmap fonts, different colors, etc...
Tilengine doesn't have specific text support. Common practice in tiled systems is to have a fixed-width font encoded inside a tileset, with each glyph using the same number of tiles. Then rendering text is just matter of updating the layer tilemap with TLN_SetTilemapTile()

The "RetroPang" pang clone developed by RetroManiac magazine used this technique to render text. You can find the sample video in youtube and links to the source code and PDF magazine here:
https://youtu.be/3x-RmMktoO0
Reply
#4
Thanks Marc.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)