You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
754 B
38 lines
754 B
4 months ago
|
local function drawFPS()
|
||
7 months ago
|
love.graphics.setColor(1, 1, 1) -- RGB values for white are (1, 1, 1)
|
||
6 months ago
|
love.graphics.setFont(DebugFont)
|
||
|
love.graphics.print("FPS: " .. love.timer.getFPS(), 1520, 10)
|
||
|
end
|
||
|
|
||
4 months ago
|
local function drawHealth()
|
||
6 months ago
|
love.graphics.setFont(GameFont)
|
||
|
local height = love.graphics.getHeight()
|
||
|
local width = love.graphics.getWidth()
|
||
|
love.graphics.print("" .. UserPlayer1.health, 5, 5)
|
||
|
love.graphics.print("" .. UserPlayer2.health, width - 70, height - 95)
|
||
7 months ago
|
end
|
||
|
|
||
|
function DrawGame()
|
||
6 months ago
|
--STI
|
||
|
GameMap:draw()
|
||
4 months ago
|
|
||
7 months ago
|
-- WindField
|
||
|
if DebugFlag then
|
||
|
World:draw()
|
||
|
drawFPS()
|
||
|
end
|
||
|
|
||
|
for _, v in ipairs(Bullets1) do
|
||
|
v:draw()
|
||
|
end
|
||
|
for _, v in ipairs(Bullets2) do
|
||
|
v:draw()
|
||
|
end
|
||
4 months ago
|
|
||
7 months ago
|
UserPlayer1:draw()
|
||
|
UserPlayer2:draw()
|
||
6 months ago
|
|
||
|
--Draw Health
|
||
|
drawHealth()
|
||
7 months ago
|
end
|