Added delay before scores are hidden at the end of a match.

This commit is contained in:
Patrick Fairbank
2014-08-08 14:50:40 -06:00
parent 683ee42f99
commit 533c21c865

View File

@@ -12,8 +12,9 @@ import (
)
const (
arenaLoopPeriodMs = 10
dsPacketPeriodMs = 250
arenaLoopPeriodMs = 10
dsPacketPeriodMs = 250
matchEndScoreDwellSec = 3
)
// Progression of match states.
@@ -389,8 +390,12 @@ func (arena *Arena) Update() {
auto = false
enabled = false
sendDsPacket = true
arena.audienceDisplayScreen = "blank"
arena.audienceDisplayNotifier.Notify(nil)
go func() {
// Leave the scores on the screen briefly at the end of the match.
time.Sleep(time.Second * matchEndScoreDwellSec)
arena.audienceDisplayScreen = "blank"
arena.audienceDisplayNotifier.Notify(nil)
}()
arena.playSoundNotifier.Notify("match-end")
}
}