Difference between revisions of "Reference"

From Gamebuino Wiki
Jump to: navigation, search
m (display)
m (public vars grouped)
Line 12: Line 12:
 
* [[gb.update]]()
 
* [[gb.update]]()
 
* [[gb.setFrameRate]](fps)
 
* [[gb.setFrameRate]](fps)
* [[gb.frameCount]]
 
 
* [[gb.pickRandomSeed]]()
 
* [[gb.pickRandomSeed]]()
 
* [[gb.changeGame]]()
 
* [[gb.changeGame]]()
 +
* [[gb.frameCount]]
 
</code>
 
</code>
 
User interface :
 
User interface :
Line 96: Line 96:
 
* [[gb.display.update]]()
 
* [[gb.display.update]]()
 
* [[gb.display.fillScreen]](color)
 
* [[gb.display.fillScreen]](color)
 +
* [[gb.display.setColor]](color, ''background'')
 
* [[gb.display.persistence]] = true/false
 
* [[gb.display.persistence]] = true/false
* [[gb.display.setColor]](color, ''background'')
 
 
</code>
 
</code>
  
Line 146: Line 146:
 
* [[gb.display.print]](text or numbers)
 
* [[gb.display.print]](text or numbers)
 
* [[gb.display.drawChar]](x, y, char, size)
 
* [[gb.display.drawChar]](x, y, char, size)
* [[gb.display.print]](text)
+
* [[gb.display.setFont]](font)
 
* [[gb.display.cursorX]] = x
 
* [[gb.display.cursorX]] = x
 
* [[gb.display.cursory]] = y
 
* [[gb.display.cursory]] = y
* [[gb.display.setFont]](font)
 
 
* [[gb.display.fontSize]] = size
 
* [[gb.display.fontSize]] = size
 
* [[gb.display.textWrap]] = true/false
 
* [[gb.display.textWrap]] = true/false

Revision as of 2014-06-24T21:49:00

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: NOFLIP, FLIPH, FLIPV, FLIPVH

Text :

Useful constants: LCDWIDTH, LCDHEIGHT, gb.display.fontWidth, gb.display.fontHeight