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.

30 lines
1.1 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. TEXTURES = {
  2. BUTTON1 = am.texture2d("res/button1.png"),
  3. WIDER_BUTTON1 = am.texture2d("res/wider_button1.png"),
  4. TAB_ICON = am.texture2d("res/tab_icon.png"),
  5. SATELLITE = am.texture2d("res/satelite.png"),
  6. TOWER_REDEYE = am.texture2d("res/tower_redeye.png"),
  7. TOWER_LIGHTHOUSE = am.texture2d("res/tower_lighthouse.png"),
  8. TOWER_WALL = am.texture2d("res/tower_wall.png"),
  9. TOWER_MOAT = am.texture2d("res/tower_moat.png"),
  10. TOWER_REDEYE_ICON = am.texture2d("res/tower_redeye_icon.png"),
  11. TOWER_LIGHTHOUSE_ICON = am.texture2d("res/tower_lighthouse_icon.png"),
  12. TOWER_WALL_ICON = am.texture2d("res/tower_wall_icon.png"),
  13. TOWER_MOAT_ICON = am.texture2d("res/tower_moat_icon.png"),
  14. MOB_BEEPER = am.texture2d("res/mob_beeper.png"),
  15. }
  16. function pack_texture_into_sprite(texture, width, height)
  17. return am.sprite{
  18. texture = texture,
  19. s1 = 0, s2 = 1, t1 = 0, t2 = 1,
  20. x1 = 0, x2 = width, width = width,
  21. y1 = 0, y2 = height, height = height
  22. }
  23. end