Pegar itens com Enter (não-testado)
[Projeto-PCG.git] / maploader.lua
blob2cba12d71d2f3008b7313b3ac029dd68cf93743e
1 function map(t)
2 regmap(t.width,t.height,t.spawn[1],t.spawn[2])
3 for i,p in pairs(t.platforms) do
4 regplatform(p[1],p[2],p[3],p[4],p.passable)
5 end
6 for i,w in pairs(t.weapons) do
7 regweapon(w.name, w.spawn[1], w.spawn[2])
8 end
9 return t
10 end
12 function platform(t)
13 if t.passable == nil then
14 t.passable = true
15 end
16 return t
17 end