mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
9cd525a04e
commit
4a212181e7
@ -347,7 +347,8 @@ func (p *Player) draw(screen *ebiten.Image) {
|
|||||||
// Compose the current time text.
|
// Compose the current time text.
|
||||||
m := (c / time.Minute) % 100
|
m := (c / time.Minute) % 100
|
||||||
s := (c / time.Second) % 60
|
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
|
// Draw buttons
|
||||||
op := &ebiten.DrawImageOptions{}
|
op := &ebiten.DrawImageOptions{}
|
||||||
|
Loading…
Reference in New Issue
Block a user