Examples

A sample sprite library demonstration program is provided in under /usr/src/PR/demos/spgame. The demo shows how to use sprite library to do backgrounds, texts and a simple animation.

Backgrounds
Setting up copy mode. Using TLUTs to animate it.
Scrolling Background example (up/down, left/right)

Text (Fonts)
void text_sprite(Sprite *txt, char *str, Font *fnt, int xlen, int ylen)
This creates the appropriate bitmap to render the specified string in the indicated sprite. You can use a two-pass approach to render a larger number of characters.

Copyright © 1999 Nintendo of America Inc. All Rights Reserved Nintendo and N64 are registered trademarks of Nintendo Last Updated January, 1999