examples/particles: Reduce emittion

This commit is contained in:
Hajime Hoshi 2019-02-24 01:26:07 +09:00
parent 0a35efbba9
commit f7e7598567

View File

@ -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))
}