Difference between revisions of "Reference"
From Gamebuino Wiki
(→sound) |
|||
Line 39: | Line 39: | ||
Play : | Play : | ||
<code> | <code> | ||
− | * [[gb.sound.play]]() | + | * [[gb.sound.play]](sound) |
− | * [[gb.sound.isPlaying]]() | + | * [[gb.sound.isPlaying]](channel) |
− | * [[gb.sound.stop]]() | + | * [[gb.sound.stop]](''channel'') |
− | * [[gb.sound.setLooping]]() | + | * [[gb.sound.setLooping]](channel, true/false) |
+ | * [[gb.sound.prescaler]] | ||
</code> | </code> | ||
Volume : | Volume : | ||
<code> | <code> | ||
− | * [[gb.sound. | + | * [[gb.sound.setVolume]](volume, ''channel'') |
− | * [[gb.sound. | + | * [[gb.sound.getVolume]](''channel'') |
− | |||
− | |||
</code> | </code> | ||
Revision as of 2014-04-20T10:55:07
The Reference lists and explains all the functions of the Library.
Arguments in italic are optional.
core
- gb.begin(F("name"), logo)
- gb.update()
- gb.setFrameRate(fps)
- gb.frameCount
User interface :
- changeGame()
- gb.menu(menu, length)
- gb.keyboard(text, length)
- gb.popup(F("text"))
- gb.adjustVolume()
Perfomance monitor :
buttons
- gb.buttons.pressed(button)
- gb.buttons.released(button)
- gb.buttons.held(button, duration)
- gb.buttons.repeat(button, period)
- gb.buttons.timeHeld(button)
sound
Play :
- gb.sound.play(sound)
- gb.sound.isPlaying(channel)
- gb.sound.stop(channel)
- gb.sound.setLooping(channel, true/false)
- gb.sound.prescaler
Volume :
- gb.sound.setVolume(volume, channel)
- gb.sound.getVolume(channel)
Build-in sounds :
battery
backlight
display
General :
- gb.display.setContrast()
- gb.display.clear()
- gb.display.update()
- gb.display.fillScreen()
- gb.display.persistance
Pixels :
Lines :
Rectangles :
Circles :
- gb.display.drawCircle()
- gb.display.drawCircleHelper()
- gb.display.fillCircle()
- gb.display.fillCircleHelper()
Triangles :
Bitmaps :
Text :
- gb.display.drawChar()
- gb.display.print()
- gb.display.setCursor()
- gb.display.setTextColor()
- gb.display.setTextSize()
- gb.display.setTextWrap()