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.

26 lines
722 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. SOUNDS = {
  2. -- sfxr_synth seeds
  3. EXPLOSION1 = 49179102, -- this slowed sounds metal as fuck
  4. EXPLOSION2 = 19725402,
  5. EXPLOSION3 = 69338002,
  6. HIT1 = 25811004,
  7. LASER1 = 79859301,
  8. LASER2 = 86914201,
  9. PUSH1 = 30455908,
  10. BIRD1 = 50838307,
  11. RANDOM1 = 85363309,
  12. RANDOM2 = 15482409,
  13. RANDOM3 = 58658009,
  14. RANDOM4 = 89884209,
  15. RANDOM5 = 36680709,
  16. -- audio buffers
  17. TRACK1 = am.track(am.load_audio("res/track1.ogg"), true, 1, 0.1)
  18. }
  19. -- play a sound with variable pitch
  20. function vplay_sound(seed)
  21. return am.play(am.sfxr_synth(seed), false, (math.random() + 0.5)/2)
  22. end