Difference between revisions of "Reference"

From Gamebuino Wiki
Jump to: navigation, search
(sound: updated to the new sound library)
(core: updated to the last version of the library)
Line 10: Line 10:
 
<code>
 
<code>
 
* [[gb.begin]]
 
* [[gb.begin]]
* [[gb.titleScreen]](''F("name")'', ''logo'')
 
 
* [[gb.update]]()
 
* [[gb.update]]()
 
* [[gb.setFrameRate]](fps)
 
* [[gb.setFrameRate]](fps)
 
* [[gb.frameCount]]
 
* [[gb.frameCount]]
 
* [[gb.pickRandomSeed]]()
 
* [[gb.pickRandomSeed]]()
 +
* [[gb.changeGame]]()
 
</code>
 
</code>
 
User interface :
 
User interface :
 
<code>
 
<code>
* [[gb.changeGame]]()
+
* [[gb.titleScreen]](''F("name")'', ''logo'')
* [[gb.getDefaultName]](string) //10 char
 
 
* [[gb.menu]](menu, length)
 
* [[gb.menu]](menu, length)
 
* [[gb.keyboard]](string, length)
 
* [[gb.keyboard]](string, length)
 
* [[gb.popup]](F("text"), duration)
 
* [[gb.popup]](F("text"), duration)
* [[gb.adjustVolume]]()
+
* [[gb.getDefaultName]](string) //10 char
 
</code>
 
</code>
 
Perfomance monitor :
 
Perfomance monitor :

Revision as of 2014-06-24T16:48:14

Here is listed and explained all Gamebuino specific functions (the Gamebuino Library).

See Arduino Reference for general purpose/basic functions and data types.

Note: Arguments in italic are optional.

core

User interface :

Perfomance monitor :

buttons

buttons:

BTN_A, BTN_B, BTN_C, BTN_UP, BTN_RIGHT, BTN_DOWN, BTN_LEFT

sound

Play & Stop

Build-in sounds

Misc

battery

backlight

The following should be set using SETTINGS.HEX

display

General :

Pixels :

Lines :

Rectangles :

Circles :

Triangles :

Bitmaps :

rotation: NOROT, ROTCCW, ROT180, ROTCW

flip: FLIPH, FLIPV, FLIPVH

Text :

useful constants: LCDWIDTH, LCDHEIGHT, FONTWIDTH, FONTHEIGHT