Last Hour Pack
[Projeto-PCG.git] / map1.lua
blob02b1d8932a3c04ba4149001e4320c6593d06b606
1 local w = 800
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