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.

32 lines
631 B

  1. --[[ WARZONE 2 - HEXAGONAL GRID RESOURCE BASED TOWER DEFENSE GAME]]
  2. --[[
  3. ]]
  4. require "hex"
  5. -- ENTRY POINT -----------------------------------------------------------------
  6. win = am.window {
  7. title = "Warzone 2: Electric Boogaloo",
  8. -- BASE RESOLUTION = 3/4 * WXGA Standard 16:10 Aspect Ratio
  9. width = 1280 * 3 / 4,
  10. height = 800 * 3 / 4,
  11. clear_color = vec4(0, 0, 0, 0)
  12. }
  13. -- GROUPS
  14. local grid = am.group()
  15. --[[
  16. xaxis = am.line(vec2(-win.width / 2, 0) , vec2(win.width / 2, 0))
  17. yaxis = am.line(vec2(0, -win.height / 2), vec2(0, win.height / 2))
  18. grid:append(xaxis)
  19. grid:append(yaxis)
  20. --]]
  21. win.scene = grid