examples/audio: Show the current volume (#730)

This commit is contained in:
Hajime Hoshi 2019-01-05 01:43:22 +09:00
parent 123be16699
commit 348e50c5e7

View File

@ -212,7 +212,8 @@ Press S to toggle Play/Pause
Press P to play SE
Press Z or X to change volume of the music
Press B to switch the run-in-background state
Current Time: %s`, ebiten.CurrentTPS(), currentTimeStr)
Current Time: %s
Current Volume: %d/128`, ebiten.CurrentTPS(), currentTimeStr, int(p.audioPlayer.Volume()*128))
ebitenutil.DebugPrint(screen, msg)
}