Skip to content

Commit 561dce0

Browse files
committed
fix: add explanation to example
At the moment the example screen is black, and user does not know what he is supposed to do. Add instruction what user action will trigger playing the sound effect.
1 parent 9c9905e commit 561dce0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_examples/audio/lowlevel/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313

1414
"github.com/elgopher/pi"
1515
"github.com/elgopher/pi/piaudio"
16+
"github.com/elgopher/pi/picofont"
1617
"github.com/elgopher/pi/piebiten"
1718
"github.com/elgopher/pi/pievent"
1819
"github.com/elgopher/pi/piloop"
@@ -25,6 +26,8 @@ var clickWav []byte
2526
func main() {
2627
sample := piaudio.DecodeWav(clickWav)
2728

29+
picofont.Print("PRESS LEFT MOUSE BUTTON TO PLAY SFX", 90, 80)
30+
2831
pi.Init = func() {
2932
// The sample must be loaded before use,
3033
// but communication with the audio backend is only possible after starting the game.

0 commit comments

Comments
 (0)