Archive of the Gamebuino Classic wiki, recovered from the Wayback Machine (capture 2025-04-15). Read-only.
gb.update
Description
Returns true and updates everything (display, sound, batter monitor, etc.) at a fixed frequency (20 times per second by default).
It should be used in a specific conditional structure, see "Syntax".
Syntax
while(1){
if(gb.update()){
//your game here
}
}
Parameters
none
Returns
boolean: true if enough time has elapsed since the last frame (20 frames per second = 50ms per frame).
Example