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
Consertado spawn do mapa 2
[Projeto-PCG.git]
/
map2.lua
blob
3cf2a482d62f069f61c16e5fed8991d412de8433
1
local
x
=
1024
2
local
y
=
60000
3
4
math
.
randomseed
(
os
.
time
() )
5
6
function
enemies
()
7
local
e
= { }
8
for
i
=
1
,
20
do
9
e
[
i
] = {
name
=
"Soldier"
,
spawn
= {
math
.
random
(
1000
),
i
*
3000
}}
10
end
11
return
e
12
end
13
14
map
{
15
spawn
= {
x
/
2
,
y
-
250
},
16
width
=
x
,
17
height
=
y
,
18
platforms
= {
19
platform
{
0
,
y
-
250
,
x
,
y
-
250
,
passable
=
false
},
20
},
21
weapons
= {
22
{
name
=
"Flamethrower"
,
spawn
= {
x
/
3
,
y
-
5000
}},
23
},
24
enemies
=
enemies
()
25
}