DSWave: Difference between revisions
From GameBrew
More actions
No edit summary |
No edit summary |
||
| Line 16: | Line 16: | ||
===How to Use DSWaves=== | ===How to Use DSWaves=== | ||
Load the waves to the RAM: | Load the waves to the RAM: | ||
DSWave.LoadWave("imagen_ondas.png") | DSWave.LoadWave("imagen_ondas.png") | ||
Load the waves to the VRAM: | Load the waves to the VRAM: | ||
DSWave.LoadVWave("imagen_ondas.png") | DSWave.LoadVWave("imagen_ondas.png") | ||
Free the image of the waves (to be able to load another or to free memory): | Free the image of the waves (to be able to load another or to free memory): | ||
DSWave.ClearWave() | DSWave.ClearWave() | ||
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): | 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(Color) | ||
Create a horizontal mirror, for example, DSWave.MirrorH(true) to enable or DSWave.MirrorH(false) to disable: | 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.MirrorV(true) or DSWave.MirrorV(false) | ||
Same as the previous one but creating a vertical mirror: | Same as the previous one but creating a vertical mirror: | ||
DSWave.MirrorH(true) or DSWave.MirrorH(false) | DSWave.MirrorH(true) or DSWave.MirrorH(false) | ||
Blite the wave on the screen, it must be used inside the loop: | Blite the wave on the screen, it must be used inside the loop: | ||
DSWave.Init(SCREEN_UP) or DSWave.Init(SCREEN_DOWN) | DSWave.Init(SCREEN_UP) or DSWave.Init(SCREEN_DOWN) | ||
Define the speed of the wave. Important to use, otherwise the wave will not move (where 1 can be 2, 3 , 4, etc): | 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.SetSpeed(1) | ||
Return the speed of the wave. Must be used with a variable, example: | Return the speed of the wave. Must be used with a variable, example: | ||
velocidad_olas = DSWave.GetSpeed() | velocidad_olas = DSWave.GetSpeed() | ||
'''Note from developer:''' | '''Note from developer:''' | ||
Revision as of 08:51, 24 May 2021
| DSWave | |
| File:Dswaves.png | |
| General | |
|---|---|
| Author(s) | RedHunter |
| Type | Other |
| Version | 1.0 |
| Licence | Mixed |
| Links | |
| [Media:Dswavelua1.rar Download] | |
| Website | |
<htmlet>adsense</htmlet>