Difference between revisions of "Reference"

From Gamebuino Wiki
Jump to: navigation, search
(core: collidePointPoint and collideRectRect added)
(core: collidePointPoint and collideRectRect added)
Line 17: Line 17:
 
</code>
 
</code>
 
User interface :
 
User interface :
<code>
 
* [[gb.collidePointRect]](x1, y1 ,x2 ,y2, w, h)
 
* [[gb.collideRectRect]](x1, y1, w1, h1 ,x2 ,y2, w2, h2)
 
 
<code>
 
<code>
 
* [[gb.titleScreen]](''F("name")'', ''logo'')
 
* [[gb.titleScreen]](''F("name")'', ''logo'')
Line 28: Line 25:
 
</code>
 
</code>
 
Physics:
 
Physics:
 
+
<code>
 +
* [[gb.collidePointRect]](x1, y1 ,x2 ,y2, w, h)
 +
* [[gb.collideRectRect]](x1, y1, w1, h1 ,x2 ,y2, w2, h2)
 +
</code>
 
Perfomance monitor :
 
Perfomance monitor :
 
<code>
 
<code>

Revision as of 2014-07-31T22:07:18

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 :

Physics:

Perfomance monitor :

buttons

buttons:

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

sound

For an overall explanation of how the sound library works, see Sound.

Tracks

Pattern

Notes & commands

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