Effece / Smiletris-4

Recreation of Smiletris, a variation of the iconic Tetris game. Mainly new events. Made in Java, executable in console or in a window using javax.swing and java.awt.
1 stars 0 forks source link

Lines not detected #1

Closed Effece closed 1 year ago

Effece commented 1 year ago

The detection system for the lines somehow doesn't always detect the horizontal lines.

Effece commented 1 year ago

The "previousX" and "previousY" functions were using the object's width and height rather than the temporary grid created for the horizontal detection. Additionally, the columns made at the bottom of the last column weren't detected because the test to check if the counter was above 4 was not ran after the end of the loops.