Home

Forum

Games

~~~~~~~~~~~~~

Chapter
Examples



Programming 2D Games

Official site of "Programming 2D Games" the book
by: Charles Kelly

Chapter 8 Text

Three Cs

The letter 'C' is displayed in three different sizes using the sprite font system.

  • Demonstrates how to display text using the sprite font system.
  • Demonstrates the effect on quality of enlarging a sprite font.

Three Cs

download......(Source Included)

Three Cs DX

The letter 'C' is displayed in three different sizes using the DirectX font system.

  • Demonstrates how to display text using the DirectX font system.
  • Demonstrates the effect on quality of enlarging a DirectX font.

Three Cs DX

download......(Source included)

Text Demo

Text is displayed using different fonts, colors and styles. Pressing a key switches the display between DirectX fonts and sprite fonts. The current frames-per-second is displayed in the lower right corner of the screen.

  • Demonstrates how to display text using both sprite fonts and DirectX fonts.
  • Demonstrates the different display effects available for each font type.
  • The performance difference between the two font system is compared.

Text Demo

Download......(Source included)

 

 


Creative Commons License
Programming 2D Games Examples by Charles Kelly are licensed under a Creative Commons Attribution 3.0 Unported License.

 

This website copyright © 2012 by Charles Kelly, All Rights Reserved

Last Updated:

24 May, 2013