DSWave: Difference between revisions
From GameBrew
More actions
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
==User guide== | ==User guide== | ||
'''How to Use DSWaves:''' | |||
Load the RAM waves. | Load the RAM waves. | ||
DSWave.LoadWave ("imagen_ondas.png") | DSWave.LoadWave ("imagen_ondas.png") <br> | ||
Load the VRAM waves. | Load the VRAM waves. | ||
DSWave.LoadVWave ("imagen_ondas.png") | DSWave.LoadVWave ("imagen_ondas.png") <br> | ||
Free the image of waves (for charging another or to free memory). | Free the image of waves (for charging another or to free memory). | ||
DSWave.ClearWave () | DSWave.ClearWave () <br> | ||
Dyeing the waves. Example: DSWave.Tint (Red), assume you define a color using Red as Red = Color.new (31,0,0) | Dyeing the waves. Example: DSWave.Tint (Red), assume you define a color using Red as Red = Color.new (31,0,0) | ||
DSWave.Tint (Color) | DSWave.Tint (Color) <br> | ||
Creates a horizontal mirror. Example: DSWave.MirrorH (true) to enable or DSWave.MirrorH (false) to disable. | Creates a horizontal mirror. 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) <br> | ||
Same as above but creating a vertical mirror. | Same as above but creating a vertical mirror. | ||
DSWave.MirrorH (true) or DSWave.MirrorH (false) | DSWave.MirrorH (true) or DSWave.MirrorH (false) <br> | ||
Blitea the wave on the screen should be used inside the loop. | Blitea the wave on the screen should be used inside the loop. | ||
DSWave.Init (SCREEN_UP) or DSWave.Init (SCREEN_DOWN) | DSWave.Init (SCREEN_UP) or DSWave.Init (SCREEN_DOWN) <br> | ||
Sets the speed of the wave, important to use, otherwise the wave will not move. | Sets the speed of the wave, important to use, otherwise the wave will not move. | ||
DSWave.SetSpeed (1) - where 1 can be 2,3,4, ... | DSWave.SetSpeed (1) - where 1 can be 2,3,4, ... <br> | ||
Returns the speed of the wave, for use with a variable Example: | Returns the speed of the wave, for use with a variable Example: | ||
DSWave.GetSpeed velocidad_olas = () | DSWave.GetSpeed velocidad_olas = () <br> | ||
'''Note from developer:''' | '''Note from developer:''' | ||
Revision as of 06:29, 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>