summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/draw/default.lua
blob: a13244a43390974ffddd3e419d7e7d579dba5623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
main.draw = function()
  local currentTime = love.timer.getTime()
  if nextTime <= currentTime then
    nextTime = currentTime
    return
  end
  love.timer.sleep(nextTime - currentTime)

  love.graphics.scale(windowProfile.scale.x, windowProfile.scale.y)

  love.graphics.print('FPS: ' .. love.timer.getFPS(), 0, 0)

  draw = {
    bola = love.graphics.draw(
      metaSprites.bola.image,
      quad.bola,
      character.bola.position.x,
      character.bola.position.y,
      character.bola.orientation,
      character.bola.scale.x,
      character.bola.scale.y,
      character.bola.origin.x,
      character.bola.origin.y
    )
  }
--  bolaDraw.motion()
--  game.draw(metaSprites.bola, quad.bola, character.bola)
end