hexyz is tower defense game, and a lua library for dealing with hexagonal grids
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.

52 lines
892 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
4 years ago
5 years ago
  1. math.randomseed(os.time())
  2. math.random()
  3. math.random()
  4. math.random()
  5. math.random()
  6. do
  7. local width, height, title = 1920, 1080, "hexyz"
  8. WIN = am.window{
  9. width = width,
  10. height = height,
  11. title = title,
  12. highdpi = true,
  13. letterbox = true,
  14. --projection = projection
  15. }
  16. OFF_SCREEN = vec2(width * 2, 0) -- arbitrary location garunteed to be offscreen
  17. end
  18. -- assets and/or trivial code
  19. require "color"
  20. require "sound"
  21. require "texture"
  22. require "src/entity"
  23. require "src/extra"
  24. require "src/geometry"
  25. require "src/hexyz"
  26. require "src/game"
  27. require "src/grid"
  28. require "src/gui"
  29. require "src/mob"
  30. require "src/projectile"
  31. require "src/tower"
  32. -- global audio settings
  33. MUSIC_VOLUME = 0.1
  34. SFX_VOLUME = 0.1
  35. function main_action() end
  36. function main_scene() end
  37. WIN.scene = am.group()
  38. game_init()
  39. noglobals()