Hello threre! I have been making a tetris game and have had the following problem. I am a complete beginner and tried to line up my tetris grid, but some lines appear to be narrower or wider than the others, though all of them have the same thickness. It gets better or worse when I try to change the resolution. Each of the lines is made up of built-in 2D-sprite (so called “Square”). I would be very glad to hear your replies if anyone knows what the problem even might be. I added a screenshot which represents this issue.
The problem is that the display isn’t pixel-perfect. You’re basically seeing a moire pattern of the shapes with the pixels of the display.
You should not be lining up squares to make the background grid. For your pieces, sure, line 'em up. But the background probably be just a solid color. Or if you must have a grid, then make an image of a grid, and stretch that image over a solid quad or whatever in the background.
1 Like
JoeStrout, thank you very much for your reply. I have solved this problem using Pixel Perfect Camera. Display really was not pixel-perfect. And thank you very much for your idea to make an image of a grid. It would definitely solved the problem as well.