I Need Halp

By UxoZii

Henlo, I’m trying to recreate a fun game called Puyo Puyo. I’ll explain it briefly if you don’t know what this is:

This is a puzzle game like tetris, but with puyos. Instead of forming lines, you pop puyos by putting 4 or more of them with the same color next to each other, and they’ll pop. When they pop, other puyos can also fall, and connect with other puyos and pop too. This is called a chain. (I suggest looking online if you’re interested)

Here’s the problem:
I can’t find a good algorithm to check the entire board and find 4 or more connected puyos with the same color without a horrible lag. The more puyos, the more lag (check in game). With what I have here, everything works perfectly, but it’s just laggy as hell, and there’s no way to reduce the lag. Is anyone down to try and figure out a good way to do this? (The board is 6×12), (You don’t have to code, you can explain the algorithm by text)

PS: The code is complicated to understand, I don’t recommend trying to understand it. I myself get lost in it but I have everything on paper. (I’m mostly talking about the POP: label, the one responsible for checking the board for puyos). If you want I can explain my algorithm, but it’s a bad one so.. it’s not really useful

Get LowRes Coder to use this program.

Play homegrown retro games and program your own!