diff --git a/lib/invaders.lua.in b/lib/invaders.lua.in index c9a2d8b8..9992659b 100644 --- a/lib/invaders.lua.in +++ b/lib/invaders.lua.in @@ -195,7 +195,7 @@ function enemies.setup() for y = 1, gamedata.enemies.rows do gamedata.enemies.data[y] = { } for x = 1, math.ceil((gamedata.enemies.count / gamedata.enemies.rows) + 1) do - gamedata.enemies.data[y][x] = enemies.new( math.random(1, 3) ) + gamedata.enemies.data[y][x] = enemies.new((y % 3) + 1) end end