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.

21 line
603 B

  1. menu = Class{}
  2. local M = {}
  3. local menuLoaded = false
  4. function menu.update(dt)
  5. if animationSecsLeft > 0 then
  6. animationSecsLeft = animationSecsLeft - dt
  7. end
  8. end
  9. function menu.draw(dt)
  10. if animationSecsLeft > 0 then
  11. love.graphics.setColor(1,1,1,1-1/(animationSecsLeft+0.000001))
  12. love.graphics.draw(logo, 0,0)
  13. else
  14. love.graphics.setFont(titlefont)
  15. love.graphics.printf("NuclearGravity", 0, 20, WINDOW_WIDTH, "center")
  16. menu:butt(buttons, WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_WIDTH/2, WINDOW_HEIGHT/2, 40, WINDOW_WIDTH/3)
  17. end
  18. end
  19. return menu