More actions
No edit summary |
No edit summary |
||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox DS Homebrews | ||
| title | |title=DSWave | ||
| image | |image=Dswaves2.png | ||
| type | |description=Library for Micro Lua DS, resemble the wave effect of PSP. | ||
| version | |author=RedHunter | ||
| | |lastupdated=2012/11/06 | ||
| | |type=Other Apps | ||
| website | |version=1.0 | ||
|license=Mixed | |||
|download=https://dlhb.gamebrew.org/dshomebrew2/dswave_lua1.0.rar | |||
|website=http://nds.scenebeta.com/noticia/dswaves | |||
}} | }} | ||
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|Micro Lua DS]] only. | 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|Micro Lua DS]] only. | ||
==User guide== | ==User guide== | ||
===How to Use DSWaves=== | ===How to Use DSWaves=== | ||
DSWave.LoadWave("imagen_ondas.png") | |||
DSWave.LoadWave("imagen_ondas.png") | Load the waves to the RAM. | ||
Load the waves to the | DSWave.LoadVWave("imagen_ondas.png") | ||
DSWave.LoadVWave("imagen_ondas.png") | Load the waves to the VRAM. | ||
Free the image of the waves (to be able to load another or to free memory) | DSWave.ClearWave() | ||
DSWave. | 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.Tint(Color) | ||
DSWave. | 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). | ||
Create a horizontal mirror, for example, DSWave.MirrorH(true) to enable or DSWave.MirrorH(false) to disable | DSWave.MirrorV(true) or DSWave.MirrorV(false) | ||
DSWave. | Create a horizontal mirror, for example, DSWave.MirrorH(true) to enable or DSWave.MirrorH(false) to disable. | ||
Same as the previous one but creating a vertical mirror | DSWave.MirrorH(true) or DSWave.MirrorH(false) | ||
DSWave. | Same as the previous one but creating a vertical mirror. | ||
Blite the wave on the screen, it must be used inside the loop | DSWave.Init(SCREEN_UP) or DSWave.Init(SCREEN_DOWN) | ||
DSWave. | 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) | DSWave.SetSpeed(1) | ||
DSWave. | Define the speed of the wave. Important to use, otherwise the wave will not move (where 1 can be 2, 3 , 4, etc). | ||
Return the speed of the wave | velocidad_olas = DSWave.GetSpeed() | ||
Return the speed of the wave (must be used with a variable). | |||
'''Note from developer:''' | '''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. | 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. | ||
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. | |||
==External links== | |||
* SceneBeta - http://nds.scenebeta.com/noticia/dswaves | |||
Latest revision as of 12:35, 20 August 2024
DSWave | |
---|---|
General | |
Author | RedHunter |
Type | Other Apps |
Version | 1.0 |
License | Mixed |
Last Updated | 2012/11/06 |
Links | |
Download | |
Website | |
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.
User guide
How to Use DSWaves
DSWave.LoadWave("imagen_ondas.png")
Load the waves to the RAM.
DSWave.LoadVWave("imagen_ondas.png")
Load the waves to the VRAM.
DSWave.ClearWave()
Free the image of the waves (to be able to load another or to free memory).
DSWave.Tint(Color)
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.
DSWave.SetSpeed(1)
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.
External links
- SceneBeta - http://nds.scenebeta.com/noticia/dswaves