26 lines
702 B

  1. function buttonClutter()
  2. table.insert(buttons, menu:addButton("Practice",
  3. function()
  4. menuLoaded = false
  5. objReset()
  6. gameState = "practice"
  7. end))
  8. table.insert(buttons, menu:addButton("Levels",
  9. function()
  10. gameState = "selectlv"
  11. end))
  12. --[[table.insert(buttons, menu:addButton("Toggle Fullscreen",
  13. function()
  14. myscreen:toggle(WINDOW_HEIGHT, WINDOW_WIDTH)
  15. DIFFERENCE_X = myscreen.c
  16. DIFFERENCE_Y = myscreen.d
  17. OFFSET_X = myscreen.e
  18. OFFSET_Y = myscreen.f
  19. end
  20. ))]]--
  21. end
  22. local t=0
  23. function explode(x, y)
  24. t = t+10
  25. love.graphics.circle("fill", x, y, t)
  26. end