Closed Tugduoff closed 3 weeks ago
For now its quite customizable. Indeed, you can do whatever you think you want to do with it (for the main game)...
Here is an example of a config :
{ name = "Sound", args = { sounds = ( { id = "ATTACK", path = "./assets/laser2.wav", volume = 100, pitch = 1, loop = false }, { id = "HIT", path = "./assets/hit.wav", volume = 100, pitch = 1, loop = false } ) } }
In order to do that, ive created a nw component : Sound, A new sfml component : SfmlSound, And added handlers in thoses systems : Collision, Attack, Input, Config.
For any questions, feel free to ask !
For now its quite customizable. Indeed, you can do whatever you think you want to do with it (for the main game)...
Here is an example of a config :
{ name = "Sound", args = { sounds = ( { id = "ATTACK", path = "./assets/laser2.wav", volume = 100, pitch = 1, loop = false }, { id = "HIT", path = "./assets/hit.wav", volume = 100, pitch = 1, loop = false } ) } }
In order to do that, ive created a nw component : Sound, A new sfml component : SfmlSound, And added handlers in thoses systems : Collision, Attack, Input, Config.
For any questions, feel free to ask !