Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cell arrangement cannot be changed without causing exceptions #11

Open
HyperLan-git opened this issue Aug 16, 2020 · 0 comments
Open

Cell arrangement cannot be changed without causing exceptions #11

HyperLan-git opened this issue Aug 16, 2020 · 0 comments

Comments

@HyperLan-git
Copy link

First of all, I respect the effort that carykh has made in making this "simulation game" to entertain and let more people learn about biology and virology.

However I am of the philosophy that when you let people get insight on your project and let them access to your source code they should know how to build on that project and make more from it. I have tried to change the cell arrangements in the simulation to test some fun experiments (What if I fill the entire grid with living cells? What if I scale up the map and separate the cells far away from each other?). It is not possible or it's unclear from the provided code how to do that. Of course I've seen this comment in the Cell.pde file :

  /*
  0: empty
  1: empty, inaccessible
  2: normal cell
  3: waste management cell
  4: gene-removing cell
  */

But it doesn't explain clearly what each of these cell types do. 1 is black walls and 2 is living cells but where exactly do I need to put 3 and 4 cells?
I could determine that food particles can only spawn from empty cells (2) and that having none crashes the game. But why can't I manage to have a working simulation where the code for expelling waste doesn't crash the game ? I know cells can't be put on the edges else the waste can get expelled out of the map crashing instantly but theres something else I don't get, probably with those strange seemingly empty 3 and 4 cells.

Thank you again carykh for all your work but I hoped I won't have to spend hours in trial and error and I could get info about how I can modify the simulation without breaking it.
Oh and to modify the cell types I made the function "int getTypeFromXY(int preX, int preY)" in virus.pde return the cell type I want for every tile in the simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant