gbusto / BrickBreak

An attempt to make a game like "Ballz" or "Bricks and Balls".
1 stars 0 forks source link

When Checking Remaining Row Count Before Saving User, Check for Number of Current Rows #521

Open gbusto opened 5 years ago

gbusto commented 5 years ago

We don't save the user if they've reached the end of the level (no new rows being generated) and if they have less than 4 rows remaining we're not supposed to rescue them. But it doesn't quite work that way because the logic doesn't correctly check if there are currently only 4 rows left.

The reason it's a bug and we don't want this to happen is because of the steps in which the game checks to see if the game has ended. So what will happen is the game will rescue the user and remove the only remaining rows on the screen and then it waits for the user to shoot the ball before it realizes all the rows are broken. It's not a terrible bug but it should be fixed.