myscript.lua 311 B

12345678910111213141516171819202122
  1. -- Hello world!
  2. values = 7^(3*2)
  3. config =
  4. {
  5. title = "My Game Engine 2.0",
  6. fullscreen = false,
  7. resolution =
  8. {
  9. width = 800,
  10. height = 600
  11. },
  12. }
  13. function factorial(n)
  14. if n == 1 then
  15. return 1
  16. end
  17. return factorial(n-1) * n
  18. end
  19. print("Cule of 3 is "..cube(3))