repo.or.cz
/
luagame.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added full-surface alpha and rotaiton and scaling support
[luagame.git]
/
demos
/
luashooter
/
scripts
/
life_bar.lua
blob
8a3592e25d09a8c4c416aa2431d5c99f859e1236
1
--[[
2
File: life_bar.lua
3
Author: Brett Lajzer
4
Date: 5.24.2006
5
6
About:
7
This function draws the remaining number of lives
8
horizontally across the bottom left of the screen.
9
--]]
10
11
12
function
draw_lives
()
13
for
i
=
0
,
player
.
lives
-
1
do
14
display
(
player
.
image
,
i
*(
player
.
w
/
2
),
s_height
-
player
.
h
,
0
,
0.5
,
0.5
,
255
)
15
end
16
end