georgbuechner / dissonance

A command line and keyboard based strategy-game written in c++, where audio-input determines the AI-strategy and lays the seed for the map-generation.
GNU General Public License v3.0
32 stars 3 forks source link

Change use of audio-level #53

Closed georgbuechner closed 2 years ago

georgbuechner commented 2 years ago

Instead of launching an attack when level > average define a level somewhere between average and max and launch attack, when this level was reached. Three options:

  1. Only one level for triggers. Size of the attack depending on some other analysis f.e. steepness of curve
  2. Multiple levels and size of the attack depends on level. F.e. 4 levels: 1=25% of max attack size, 2=50% of max, ...
  3. Some other analysis define size and moment of attack: f.e. reduce peeks, and then use peeks and attack-size = peek-average

Also optional: find nice way of displaying level.

georgbuechner commented 2 years ago

Displaying audio level is not really possible.