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.

21 lines
466 B

  1. function rhue(a)
  2. local R = math.random(35, 75) / 100
  3. local G = math.random(35, 75) / 100
  4. local B = math.random(35, 75) / 100
  5. local A = a or math.random()
  6. return vec4(R, G, B, A)
  7. end
  8. function rmono()
  9. return vec4(1, 1, 1, math.random())
  10. end
  11. function show_axes()
  12. xaxis = am.line(vec2(win.left, 0), vec2(win.right, 0))
  13. yaxis = am.line(vec2(0, win.top), vec2(0, win.bottom))
  14. world:append(am.group{xaxis, yaxis}:tag("axes"))
  15. end