WoochanLee / BalanceTetris

Tetris built with vanilla javascript
9 stars 10 forks source link

The renderer should be separated to increase maintainability #14

Open DevSDK opened 3 years ago

DevSDK commented 3 years ago

The previous renderer was simply worked as full-drawing so It may not need the renderer module.

However, our optimization works show the increment of complexity. Also, The maintenance fee will possibly increase when the optimization or something is added to the rendering system.

Therefore, I propose the renderer module which receives the blocks array, check difference previous rendered status, and render the blocks optimally.

It will increase maintainability, readability, possibly performance.