Corrigindo alguns bugs no sistema de parede
[Projeto-PCG.git] / map1.lua
blob5732a322753b15d37f5311a4d502df64a7470c69
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 addPlat {500,h-200,500,h-400,passable=false}
30 addPlat {600,h-300,700,h-300}
32 map {
33 spawn = {400,h-200},
34 width = w,
35 height = h,
36 platforms = platforms,
37 weapons = {
38 --{name="Flamethrower", spawn={500, h-200}},
39 --{name="Shotgun", spawn={300, h-200}},
41 enemies = {
42 --{name = "Soldier", spawn={700, h-200}},