Friday, April 27, 2007

XNA FRAMEWORK FEATURE QUESTION: AUDIO

How important is to you being able to dynamically load ".wav" files into wavebanks with XNA? This is what Mitch is asking. Why? Go on reading ...

From Mitch's post: "... The native XACT APIs have added the support for programmatic wave playback. I.e. at runtime, you can load *.wav files into a Wavebank and play them from there, without needing to create a project and compile the binaries. This is something we're looking at supporting in our next release, but I want to gauge how much interest there is in this feature? Keep in mind that implementing this feature may very well mean we can't do some other feature ...".

So how important is this to you? Hurry up and post your answer here.

TIP: AUTOFORMATTING MULTIPLE LINES OF TEXT

Rhysingsun has posted a code snippet for autoformatting multiple lines of text when using the new XNA's fonts system.

From the post: "... I've been putting off my GUI because I didn't want to redesign once the XNA team's font support came out, here's the first trick I created, to help myself with my GUI: autoformatting multiple lines of text. If you look into the documentation it says that the new text functionality will go the a new line with the text if the '\n' character is found. However, this makes for some static game design. What if I want the text block to be wider? ...".

Watch this space!

ALL SAY HELLO TO "SPRITEFONT" ...

By this time, we're all aware that with the just-released update for the XNA Framework a lot of goodies were given away, like a built-in implementation to handle fonts rendering.

Shawn tell us what the font system is capable of for bitmap fonts, plus unveils a handy tool that helps you create a bitmap-font base which you can then enhace with your favorite graphic tool, like Photoshop, Gimp and such.

From the post: "... TrueType fonts are convenient, but you may sometimes find yourself wanting a more distinctive look for your text. You can create custom typefaces by arranging a set of character images into a single bitmap, separating the areas between each letter with a pure magenta marker color ...".

Read on!