samedi 2 décembre 2017

Where to put sounds in MVC Java game?

I'm working on MVC app in Java and now I want to play some sounds. Where to put playing sounds in code? To which layer of MVC?

Some of the sounds should be played after a user pressed some key so it would be fine to include it in Controller. However some sounds are played just after some time and without user interaction where just Model knows about this change. But putting sounds in Model sounds to me like a bad idea so... How can it be solved?

Aucun commentaire:

Enregistrer un commentaire