examples/vibrate: bug fix: compile error

Updates #1452
This commit is contained in:
Hajime Hoshi 2022-01-10 16:19:29 +09:00
parent d4b722eb06
commit 245cbc2f4d

View File

@ -44,7 +44,7 @@ func (g *Game) Update() error {
g.touchCounter++ g.touchCounter++
op := &ebiten.VibrateOptions{ op := &ebiten.VibrateOptions{
Duration: 200 * time.Millisecond, Duration: 200 * time.Millisecond,
Intensity: 0.5*float64(g.touchCounter%2) + 0.5, Magnitude: 0.5*float64(g.touchCounter%2) + 0.5,
} }
ebiten.Vibrate(op) ebiten.Vibrate(op)
} }