diff --git a/examples/particles/main.go b/examples/particles/main.go index 35f437141..6158d3907 100644 --- a/examples/particles/main.go +++ b/examples/particles/main.go @@ -137,7 +137,7 @@ func newSprite(img *ebiten.Image) *sprite { var sprites = list.New() func update(screen *ebiten.Image) error { - if sprites.Len() < 500 { + if sprites.Len() < 500 && rand.Intn(4) < 3 { // Emit sprites.PushBack(newSprite(smokeImage)) }