DSWave: Difference between revisions

From GameBrew
(Created page with "{{Infobox homebrew | title = DSWave | image = File:Dswaves.png | type = Other | version = 1.0 | licence = Mixed | author = RedHunter | webs...")
 
m (Text replacement - "Category:DS homebrew applications" to "")
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox homebrew
{{Infobox DS Homebrews
| title       = DSWave
|title=DSWave
| image       = [[File:Dswaves.png]]
|image=Dswaves2.png
| type       = Other
|description=Library for Micro Lua DS, resemble the wave effect of PSP.
| version     = 1.0
|author=RedHunter
| licence    = Mixed
|lastupdated=2012/11/06
| author      = RedHunter
|type=Other Apps
| website     = http://nds.scenebeta.com/noticia/dswaves
|version=1.0
| download    = Media:Dswavelua1.rar
|license=Mixed
| source      =
|download=https://dlhb.gamebrew.org/dshomebrew/dswaves.7z
|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 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==
===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.


==User guide==
DSWave.SetSpeed(1)
Load the RAM waves.
Define the speed of the wave. Important to use, otherwise the wave will not move (where 1 can be 2, 3 , 4, etc).
:DSWave.LoadWave ("imagen_ondas.png")


Load the VRAM waves.
velocidad_olas = DSWave.GetSpeed()
:DSWave.LoadVWave ("imagen_ondas.png")
Return the speed of the wave (must be used with a variable).
   
   
Free the image of waves (for charging another or to free memory).
'''Note from developer:'''
:DSWave.ClearWave ()
 
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.
Dyeing the waves.
:Example: DSWave.Tint (Red), assume you define a color using Red as Red = Color.new (31,0,0)
:DSWave.Tint (Color)
Creates a horizontal mirror. Example: DSWave.MirrorH (true) to enable or DSWave.MirrorH (false) to disable.
:DSWave.MirrorV (true) or DSWave.MirrorV (false)
Same as above but creating a vertical mirror.
:DSWave.MirrorH (true) or DSWave.MirrorH (false)
Blitea the wave on the screen should be used inside the loop.
:DSWave.Init (SCREEN_UP) or DSWave.Init (SCREEN_DOWN)
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, ...
Returns the speed of the wave, for use with a variable Example:
:DSWave.GetSpeed ​​velocidad_olas = ()


The image can create waves with GIMP or Photoshop (or other graphics editing program) or use this tutorial for PSP, only that you have to resize them to 256x192.
==External links==
* SceneBeta - http://nds.scenebeta.com/noticia/dswaves


'''NOTE:''' Keep in mind that the following variables can not be used in the homebrews because DSWave used Bookseller: waveimg, crn, crrk, Vvl, vlv, srrrr, cwave, SSSR.


[[Category:Homebrew applications]]
[[Category:Other DS applications]]

Latest revision as of 07:07, 1 May 2024

DSWave
Dswaves2.png
General
AuthorRedHunter
TypeOther Apps
Version1.0
LicenseMixed
Last Updated2012/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

Advertising: