" />

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).

0