Writing my 1st game at the moment. I know Java well but not writing games. I’ve implemented a MVC pattern and all is working well.
My model get’s ticked every game frame and my renderers get told to draw every frame. The renderers get asked to draw every frame. They query the model for it’s current state and draw it.
Is this a common/good implementation model?
I’m planning on implementing sounds next. I’m thinking of making my model fire synchronous events for things that happen. A ‘SoundRenderer’ will listen to these events, and decide on what sounds to play.
Is this a common/good implementation model?
thanks, D.