mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
examples/sprites: Update only shown sprites
This commit is contained in:
parent
12287a8382
commit
5680ce7f46
@ -79,8 +79,8 @@ type Sprites struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Sprites) Update() {
|
func (s *Sprites) Update() {
|
||||||
for _, sprite := range s.sprites {
|
for i := 0; i < s.num; i++ {
|
||||||
sprite.Update()
|
s.sprites[i].Update()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user