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

Cells moving and capsules splitting #3

Open Effece opened 1 year ago

Effece commented 1 year ago

A fun thing to observe is that sometimes, two cells stay joined but split up.

My theory is that I forgot to change the coordinates of some of the cells.

Effece commented 1 year ago

I might have fixed it, there is a test ran to avoid removing a cell that fell in the same iteration that was incomplete. Basically when a vertical capsule falls, if the bottom cell falls after the top cell which should always happen, the one on top has already changed the value on the grid where the bottom cell used to be, so the bottom cell needs to not change that new value to 0. However the test only verified if the cells were fused and not if it was vertical.

I'm not sure this solves the issue so I'll keep it open until I'm almost certain it isn't linked to something else.

Effece commented 1 year ago

The original problem wasn't actually corrected after my first comment. In the last three weeks I am almost certain I have corrected those bugs, however new bugs identical to those have presented themselves with the "gift" and "elevator" events.

Effece commented 1 year ago

For information: