Add a demo mode for Roller Con

This commit is contained in:
Neale Pickett 2013-08-05 21:01:58 -06:00
parent a8695c0019
commit 95f3d6505a
1 changed files with 18 additions and 0 deletions

18
main.c
View File

@ -150,6 +150,24 @@ draw()
pclk = (abs(period_clock / 10) / 60) * 100;
pclk += abs(period_clock / 10) % 60;
#ifdef DEMO
if (jam_clock == 0) {
if (state == LINEUP) {
state = JAM;
jam_clock = jam_duration;
} else {
state = LINEUP;
jam_clock = lineup_duration;
}
}
if (period_clock == 0) {
period_clock = - (30 * 60 * 10);
jam_clock = jam_duration;
state = JAM;
}
#endif
// Score A
write_num(score_b, 2);