Im trying to build a countdown, which has four sections:
to be displayed like this:
0 0 : 0 0
tenminutes minutes : tenseconds seconds
Ive got the _secs working below, the _tensecs goes up to 9 which is no good.
int seconds;
int _secs;
int _tensecs;
int _mins;
int _tenmins;
-(void) tick: (ccTime) dt
{
seconds++;
_secs = seconds % 10;
_tensecs = (seconds / 10) % 10; // wrong
_mins = seconds // ??
_m_tenminsins = seconds // ??
}
1 Answer