gb.frameCount

From Gamebuino Wiki
Revision as of 2014-05-20T20:03:31 by Rodot (talk | contribs) ({{lowercase}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

This variable is incremented each time gb.update() is called, so it represents the number of frames rendered since the program began running. It should be preferred over millis() to measure time. It can be used for periodic event timing (like an animated bitmap) using modulo.

Syntax

int count = gb.frameCount;

Parameters

none

Returns

unsigned long: Number of frames rendered since the program began running (20 frames per second by default)

Example

See also