repo.or.cz
/
Projeto-PCG.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Agora compila
[Projeto-PCG.git]
/
maploader.lua
blob
785e3368111cfd82069d6116e6b6c8801f28368e
1
function
map
(
t
)
2
regmap
(
t
.
width
,
t
.
height
)
3
for
i
,
p
in
pairs
(
t
.
platforms
)
do
4
regplatform
(
p
[
1
],
p
[
2
],
p
[
3
],
p
[
4
],
p
.
passable
)
5
end
6
return
t
7
end
8
9
function
platform
(
t
)
10
if
t
.
passable
==
nil then
11
t
.
passable
=
true
12
end
13
return
t
14
end