Sign in to follow this  
  • entries
    62
  • comments
    59
  • views
    25038

Font Engine

Sign in to follow this  
Etherstar

84 views

One of the major issues with Tuss Toss was that we didn't use any sort of font engine. Since we didn't need to dynamicly draw any text on screen, we simply made bitmaps of the words we used and then copied them to the screen. This was a very poor idea in hind sight and has been our first step towards something better.



This shows the new text drawing abilities that we made. Now first thing that I should note is that DirectX offers some great API calls for drawing text. However, you can see that the game's fon't really couldn't be handled by the basic text drawing methods. Instead we created the entire fontmap and copied it to a texture. Now we use the Direct3DX sprite interface to draw things in 2D or 3D. Text can be scaled, rotated and have its alpha value manipulated. Also, because the 2D graphics are not drawn pretransformed in 2D space, things can actually fly towards the camera at the player for some neat effects.

Creating a font engine really doesn't take that much time and will really improve Tuss Toss.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now