itch.io is community of indie game creators and players

Devlogs

Clone Ball Issues - I'm an idiot.

Pachinko Tetris Madness
A browser game made in HTML5

Tearing my hair out all afternoon trying to understand why my clone ball logic wasn't working. It was only cloning the ball beneath it, and not to the left/right adjacent if no other options, and worse yet - if there were no valid clone targets it was supposed to disappear and not set.


Well - turns out all of my logic was referencing the wrong ID for the clone ball. This is what I get for not triple checking.


Changing a sid == 30 to sid == 5 solved the issue :)


Still plenty of bugs to work on, but at least that one is more or less sorted and behaving well :)

You can see it triggering on both a L/R adjacent ball here (and causing a match) as well as one right below it.


The amount of times I've restarted just so I can pull a good queue to test and debug... it would probably be easier just to override the queue manually in code, but where's the fun in that

Leave a comment