From GameBrew - a wiki dedicated to Video Game Homebrew.
DSWaves (Spanish) is a library programmed in Lua of a style waves of the PSP XMB. It creates waves resembling the PSP XMB on NDS. This library is for Micro Lua DS only.
How to Use DSWaves
Load the waves to the RAM.
Load the waves to the VRAM.
Free the image of the waves (to be able to load another or to free memory).
Tint the waves, for example, DSWave.Tint(Red), it is assumed that we already define Red as a color by Red = Color.new (31,0,0).
DSWave.MirrorV(true) or DSWave.MirrorV(false)
Create a horizontal mirror, for example, DSWave.MirrorH(true) to enable or DSWave.MirrorH(false) to disable.
DSWave.MirrorH(true) or DSWave.MirrorH(false)
Same as the previous one but creating a vertical mirror.
DSWave.Init(SCREEN_UP) or DSWave.Init(SCREEN_DOWN)
Blite the wave on the screen, it must be used inside the loop.
Define the speed of the wave. Important to use, otherwise the wave will not move (where 1 can be 2, 3 , 4, etc).
velocidad_olas = DSWave.GetSpeed()
Return the speed of the wave (must be used with a variable).
Note from developer:
You can create the image of the waves with GIMP or Photoshop (or any other graphics editing program) or use the ones in this tutorial for PSP, only you have to resize them to 256x192. Keep in mind that the following variables can not be used in our homebrews because the library uses DSWave: waveimg, CRN, crrk, vvl, VLV, srrrr, cWave, sssr.
- SceneBeta - http://nds.scenebeta.com/noticia/dswaves