mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
parent
9cd525a04e
commit
4a212181e7
@ -347,7 +347,8 @@ func (p *Player) draw(screen *ebiten.Image) {
|
||||
// Compose the current time text.
|
||||
m := (c / time.Minute) % 100
|
||||
s := (c / time.Second) % 60
|
||||
currentTimeStr := fmt.Sprintf("%02d:%02d", m, s)
|
||||
ms := (c / time.Millisecond) % 1000
|
||||
currentTimeStr := fmt.Sprintf("%02d:%02d.%03d", m, s, ms)
|
||||
|
||||
// Draw buttons
|
||||
op := &ebiten.DrawImageOptions{}
|
||||
|
Loading…
Reference in New Issue
Block a user