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
Adicionado atributo maxspeed para thing
[Projeto-PCG.git]
/
maploader.lua
blob
5a2eb2e2c9844550a8102a05deef9bd66b86274d
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
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