Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
The main server is currently down. We are running on a backup server, so editing and search functionality are temporarily disabled. Please check back in a few hours.

DSWave: Difference between revisions

From GameBrew
No edit summary
No edit summary
Line 17: Line 17:
Load the waves to the RAM:
Load the waves to the RAM:
  DSWave.LoadWave("imagen_ondas.png") <br>
  DSWave.LoadWave("imagen_ondas.png") <br>
 
Load the waves to the VRAM:
Load the waves to the VRAM:
  DSWave.LoadVWave("imagen_ondas.png") <br>
  DSWave.LoadVWave("imagen_ondas.png") <br>
 
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() <br>
  DSWave.ClearWave() <br>
 
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) <br>
  DSWave.Tint(Color) <br>
 
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) <br>
  DSWave.MirrorV(true) or DSWave.MirrorV(false) <br>
 
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) <br>
  DSWave.MirrorH(true) or DSWave.MirrorH(false) <br>
 
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) <br>
  DSWave.Init(SCREEN_UP) or DSWave.Init(SCREEN_DOWN) <br>
 
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) <br>
  DSWave.SetSpeed(1) <br>
 
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() <br>
  velocidad_olas = DSWave.GetSpeed() <br>
 
'''Note from developer:'''
'''Note from developer:'''



Revision as of 08:43, 24 May 2021

DSWave
File:Dswaves.png
General
Author(s)RedHunter
TypeOther
Version1.0
LicenceMixed
Links
[Media:Dswavelua1.rar Download]
Website
Advertisements

<htmlet>adsense</htmlet>

Contents

Advertising: