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.

34 lines
928 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
  1. SOUNDS = {
  2. -- sfxr_synth seeds
  3. EXPLOSION1 = 49179102, -- this slowed sounds metal as fuck
  4. EXPLOSION2 = 19725402,
  5. EXPLOSION3 = 69338002,
  6. EXPLOSION4 = 92224102,
  7. COIN1 = 10262800,
  8. HIT2 = 25811004,
  9. LASER1 = 79859301,
  10. LASER2 = 86914201,
  11. PUSH1 = 30455908,
  12. SELECT1 = 76036806,
  13. PUSH2 = 57563308,
  14. BIRD1 = 50838307,
  15. RANDOM1 = 85363309,
  16. RANDOM2 = 15482409,
  17. RANDOM3 = 58658009,
  18. RANDOM4 = 89884209,
  19. RANDOM5 = 36680709,
  20. -- audio buffers
  21. TRACK1 = am.track(am.load_audio("res/track1.ogg"), true, 1, 0.1)
  22. }
  23. -- play a sound with variable pitch
  24. function vplay_sound(seed)
  25. return am.play(am.sfxr_synth(seed), false, (math.random() + 0.5)/2)
  26. end
  27. function play_sound(seed)
  28. return am.play(am.sfxr_synth(seed), false)
  29. end