background.lua 522 B

1234567891011121314151617181920
  1. local Background = class()
  2. local g = love.graphics
  3. local w, h = g.width, g.height
  4. function Background:draw()
  5. g.setColor(255, 255, 255)
  6. g.draw(data.media.graphics.menu.ggbg, 0, 0)
  7. g.setFont('BebasNeue', h(.1))
  8. g.setColor(50, 50, 50)
  9. g.print('group', w(.6), h(.1) - g.getFont():getHeight() / 2)
  10. g.setColor(160, 160, 160)
  11. g.print('Gore', w(.6) + g.getFont():getWidth('group'), h(.1) - g.getFont():getHeight() / 2)
  12. g.setColor(0, 0, 0, 80)
  13. g.rectangle('fill', 0, h(.2), w(), h(.1))
  14. end
  15. return Background