Difference between revisions of "Reference"

From Gamebuino Wiki
Jump to: navigation, search
(Display: getBitmapPixel() added)
m ("Library" link removed)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
Here is listed and explained all Gamebuino specific functions (the Gamebuino [[Library]]).
+
Here is listed and explained all Gamebuino specific functions, part of the Gamebuino Library (see [[Getting started]] to install it).
  
 
See [http://arduino.cc/en/Reference/HomePage Arduino Reference] for general purpose/basic functions and data types.
 
See [http://arduino.cc/en/Reference/HomePage Arduino Reference] for general purpose/basic functions and data types.
Line 155: Line 155:
 
<code>
 
<code>
 
* [[gb.display.drawBitmap]](x,y,bitmap,''rotation'',''flip'')
 
* [[gb.display.drawBitmap]](x,y,bitmap,''rotation'',''flip'')
* [[gb.display.getBitmapPixel]](bitmap, x, y);
 
 
</code>
 
</code>
 
* rotation: <code>NOROT, ROTCCW, ROT180, ROTCW</code>
 
* rotation: <code>NOROT, ROTCCW, ROT180, ROTCW</code>
Line 175: Line 174:
 
<code>
 
<code>
 
* [[gb.display.getBuffer]]()
 
* [[gb.display.getBuffer]]()
 +
* [[gb.display.getBitmapPixel]](bitmap, x, y)
 
</code>
 
</code>
  
 
</div>
 
</div>

Latest revision as of 2014-09-06T12:22:52

Here is listed and explained all Gamebuino specific functions, part of the Gamebuino Library (see Getting started to install it).

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

  • Sound : overall explanation of how the sound library works

Tracks

Pattern

Notes & commands

Build-in sounds

Misc

Battery

Backlight

The following should be set using SETTINGS.HEX

Display

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

General :

Pixels :

Lines :

Rectangles :

Circles :

Triangles :

Bitmaps :

  • rotation: NOROT, ROTCCW, ROT180, ROTCW
  • flip: NOFLIP, FLIPH, FLIPV, FLIPVH

Text :

Advanced :