Closed ianh closed 8 years ago
Thanks! By any chance, does this change the rendering behavior to be closer the game? If so, this is pretty noncontroversial, otherwise also probably great but I would also love to see an example or two of where it really helps.
Yeah, I'm not sure how much the game uses large tetris pieces, but the rendering does seem to be closer:
Oh yeah, and here's the reason I wrote the patch. I was playing around with tetris pieces with gaps between them and found that it looked very messy, with pieces at different sizes:
Here's what that looks like after the patch:
Style nits are fine! I should really configure my editor properly instead of fixing up the indentation by hand…
Track a maximum size across all tetris pieces on the board. This lets us draw all the pieces at the same scale, making puzzles more legible.