mirror of
https://codeberg.org/scip/kageviewer.git
synced 2025-12-16 20:20:58 +01:00
check max images, use copy
This commit is contained in:
4
game.go
4
game.go
@@ -141,9 +141,7 @@ func (game *Game) Draw(screen *ebiten.Image) {
|
||||
"Mouse": []float64{float64(mousex), float64(mousey)},
|
||||
}
|
||||
|
||||
for idx, image := range game.Images {
|
||||
op.Images[idx] = image
|
||||
}
|
||||
copy(op.Images[:3], game.Images)
|
||||
|
||||
op.GeoM.Translate(float64(game.Conf.X), float64(game.Conf.Y))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user