carykh / VirusGame

Watch here for information about this project: https://www.youtube.com/watch?v=o1IheoDRdGE
MIT License
88 stars 40 forks source link

2 suggestions, 1 issue #19

Open SuperSonyk opened 4 years ago

SuperSonyk commented 4 years ago
GRBaset commented 4 years ago

As for the world size problem, the issue is that there are cells directly on the bounds (without a 1 space separation) due to the generation code, and the waste removal code fails because there's no space left for the waste. So only a few values for WORLD_SIZE actually work.

I've successfully tried the values 4, 9, 12 (default), 25, 28 and 36 (some perfect squares or some perfect squares + 3 work). However, the particle number is constant, so cells might die (with WORLD_SIZE = 4, they die in seconds), you should also adjust that, and the frame rate drops for bigger worlds (as is to be expected).

A way to fix this would be by adding a 1-cell wide border of empty cells if there isn't any, another would be to fix the waste removal code to make it wrap around.

guiga-zalu commented 4 years ago

In issue #13 there was a coded solution by @c00lum. This way, one can use the other world sizes,