I'm currently wondering how to properly structure game code.
I have come across MVC (Model View Controller) method/approach, which seams to be a decent way to get a good extendable structure.
However, I'm wondering how one should put in animations and visual transitions into this model?
The simples example I can think of is Tetris.
In many newer Tetris clones, if a line is cleared, before it's removed from the screen, it sometimes flashes in different colors for visual effect. Where does this fit in the model?
The way I understand is that MVC has a controller that should update the board state, and if one line is full, it should be removed, yet the model would do this in a single frame? The view should not interact with the model, so what would be a good way to make these visual effects appear without loosing the benefits of decoupled logic and rendering?
Sorry if this is an ill posed question.
Thanks in advance : )