Thsfx

From ProjectWiki
(Difference between revisions)
Jump to: navigation, search
(What is this?)
(Examples)
Line 9: Line 9:
 
Okay I'm convinced. Let's put it to atcion.
 
Okay I'm convinced. Let's put it to atcion.
  
==Examples==
+
You really found a way to make this whole process eseiar.
'''Fadeout'''<br>
+
Fade screen 0 to black.
+
<source lang="c">
+
thSfxEnable(0, SFX_BRIGHTDEC, SFX_BG0|SFX_BG1|SFX_BG2|SFX_BG3|SFX_OBJ|SFX_BD, SFX_NONE);
+
int fade=0;
+
do {
+
  thSfxSetBrightness(0, fade);
+
  swiWaitForVBlank();
+
} while(++fade<=SFX_MAX);
+
</source>
+
 
+
'''Fade to White'''<br>
+
Fade screen 1 to White slowly.
+
<source lang="c">
+
thSfxEnable(1, SFX_BRIGHTINC, SFX_BG0|SFX_BG1|SFX_BG2|SFX_BG3|SFX_OBJ|SFX_BD, SFX_NONE);
+
int fade=0;
+
do {
+
  thSfxSetBrightness(1, fade>>2);
+
  swiWaitForVBlank();
+
} while(++fade<=(SFX_MAX<<2));
+
</source>
+
 
+
'''Blend backgrounds with sprites'''<br>
+
Blend sprites evenly with backgrounds
+
<source lang="c">
+
thSfxEnable(0, SFX_BRIGHTINC, SFX_OBJ, SFX_BG0|SFX_BG1|SFX_BG2|SFX_BG3|SFX_BD);
+
thSfxSetAlphaBlend(0, 15, 15);
+
</source>
+
 
+
[[Category:NDS]]
+
[[Category:C]]
+
[[Category:LIBTHDS]]
+

Revision as of 20:45, 22 July 2011

NDS special effect library

Contents

Holy concise data bamtan. Lol!

Where do i get it?

Currently the sources for this are part of LibThds. The source can be downloaded via SVN (see libthds page) or directly from the svn httpd:

Okay I'm convinced. Let's put it to atcion.

You really found a way to make this whole process eseiar.

Personal tools
irssi scripts
eggdrop scripts