mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
d4b722eb06
commit
245cbc2f4d
@ -44,7 +44,7 @@ func (g *Game) Update() error {
|
||||
g.touchCounter++
|
||||
op := &ebiten.VibrateOptions{
|
||||
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user