Merge branch 'master' of git@github.com:andreferreira/Projeto-PCG
[Projeto-PCG.git] / map1.lua
blobfb2deefdb99275df4edbb17e665bcb7f8612d0a0
1 local w = 8000
2 local h = 1000
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 plat[2] = h-plat[2]
11 plat[4] = h-plat[4]
12 platforms[#platforms+1] = platform(plat)
13 end
15 function Enemy(t)
16 t.spawn[2] = h-t.spawn[2]
17 return t
18 end
20 addPlat {400,200,400,1000, passable = false}
21 addPlat {400,300,800,300}
22 addPlat {700,200,700,299, passable = false}
23 addPlat {800,300,800,1000, passable = false}
25 map {
26 spawn = {500,h-200},
27 width = w,
28 height = h,
29 platforms = platforms,
30 weapons = {
31 --{name="Flamethrower", spawn={500, h-200}},
32 --{name="Shotgun", spawn={300, h-200}},
34 enemies = {
35 Enemy {name = "Soldier", spawn={980, 200}},
36 Enemy {name = "Pyro", spawn={530, 15000}},