zmertens / SeqAndDestroy

A bubble-shooter game where the ammunition are siRNA sequences fighting off the HIV sequences. Both sequences must align in order to destroy the HIV groups.
MIT License
1 stars 2 forks source link

Add grid spacing to prevent multiple overlap #8

Closed anderspitman closed 7 years ago

anderspitman commented 7 years ago

With the sprites touching each other sometimes sprites overlap two other sprites, which can cause alignment bugs

anderspitman commented 7 years ago

Current solution is to do a linear search through the active row to determine which RNA is the closest. This is less of a hack than relying on grid spacing.