Difference between revisions of "Reference"
From Gamebuino Wiki
(→sound) |
|||
Line 3: | Line 3: | ||
Arguments in ''italic'' are optional. | Arguments in ''italic'' are optional. | ||
− | <div style="float:left;width: | + | <div style="float:left;width:30em;margin-right:2em;"> |
== core == | == core == | ||
Line 72: | Line 72: | ||
</code> | </code> | ||
− | </div><div style="float:left;width: | + | </div><div style="float:left;width:30em;margin-right:2em;"> |
== display == | == display == |
Revision as of 2014-04-20T09:55:36
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()