Pegar itens com Enter (não-testado)
[Projeto-PCG.git] / map1.lua
blobfa1673b877dbd4bdd73975906fa091e5e6ce848e
1 local w = 1600
2 local h = 1600
4 local platforms = {
5 platform{0,h-200,w,h-200,passable = false},
6 platform{0,h,w,h,passable=false}
9 function addPlat(plat)
10 platforms[#platforms+1] = platform(plat)
11 end
13 local platW = 160
14 local platH = 50
15 local platSize = 80
17 for x = 0, 4 do
18 for y = 1, 50 do
19 addPlat({x*platW,h-200-y*platH,platSize+x*platW,h-200-y*platH})
20 end
21 end
23 for x = 0, 4 do
24 for y = 1, 50 do
25 addPlat({platSize+5+x*platW,h-175-y*platH,platSize+platSize+x*platW-5,h-175-y*platH})
26 end
27 end
29 map {
30 spawn = {400,h-200},
31 width = w,
32 height = h,
33 platforms = platforms,
34 weapons = {
35 {name="Flamethrower", spawn={500, h-200}},
36 {name="Shotgun", spawn={300, h-200}},