Consertado spawn do mapa 2
[Projeto-PCG.git] / map2.lua
blob3cf2a482d62f069f61c16e5fed8991d412de8433
1 local x = 1024
2 local y = 60000
4 math.randomseed( os.time() )
6 function enemies()
7 local e = { }
8 for i = 1, 20 do
9 e[i] = {name = "Soldier", spawn = {math.random(1000), i*3000}}
10 end
11 return e
12 end
14 map {
15 spawn = {x/2, y-250},
16 width = x,
17 height = y,
18 platforms = {
19 platform{0, y-250, x, y-250, passable = false},
21 weapons = {
22 {name = "Flamethrower", spawn = {x/3, y-5000}},
24 enemies = enemies()