mirror of
https://github.com/nealey/hw-rollerderby-scoreboard
synced 2025-01-17 04:14:36 -07:00
Add a demo mode for Roller Con
This commit is contained in:
parent
a8695c0019
commit
95f3d6505a
1 changed files with 18 additions and 0 deletions
18
main.c
18
main.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue