VirusGame icon indicating copy to clipboard operation
VirusGame copied to clipboard

a WORLD_SIZE > 12 makes the game crash

Open j0912345 opened this issue 2 years ago • 2 comments

error: ArrayIndexOutOfBoundsException: <WORLD_SIZE> it happens in: cell.pde line #329 in function: public void pushOut(Particle waste) while(chosen == -1 || cells[y+dire[chosen][1]][x+dire[chosen][0]].type != 0){

(i know I'm talking like a compiler error)

j0912345 avatar Apr 11 '22 03:04 j0912345

I have found something interesting related to this. Most world sizes over 12 crash, but if the world size is a solution to 12*3^x (where x is a positive integer) the world doesnt crash. my guess is that it has to do with the fractal patterns, as each x adds exactly 1 layer to the fractal

SeanTheGleaming avatar Jun 25 '22 19:06 SeanTheGleaming

interesting

j0912345 avatar Jun 26 '22 13:06 j0912345