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
Sistema de tiro agora atira, bastante trabalho para fazer ainda.
[Projeto-PCG.git]
/
weaponmanager.lua
blob
214c29a6fa91f451863ca11e7458c3e9764460d0
1
function
Weapon
(
t
)
2
local
w
=
regweapon
(
t
.
righthand
[
1
],
t
.
righthand
[
2
],
3
t
.
lefthand
[
1
],
t
.
lefthand
[
2
],
4
t
.
name
,
t
.
firerate
,
5
t
.
tip
[
1
],
t
.
tip
[
2
])
6
for
i
=
1
, #
t
.
sprite
do
7
regspriteline
(
w
,
t
.
sprite
[
i
][
1
],
t
.
sprite
[
i
][
2
],
t
.
sprite
[
i
][
3
],
t
.
sprite
[
i
][
4
])
8
end
9
return
t
10
end
11
12
function
Line
(
t
)
13
return
t
14
end