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.

31 lines
780 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. table.insert(buttons, menu:addButton("Quit",
  22. function()
  23. love.event.quit()
  24. end
  25. ))
  26. end
  27. local t=0
  28. function explode(x, y)
  29. t = t+10
  30. love.graphics.circle("fill", x, y, t)
  31. end