Hi
I want to make green spreading slime with from cubes similar to this: (on bottom)
Any hints how to make it with C#?
Thanks
Hi
I want to make green spreading slime with from cubes similar to this: (on bottom)
Any hints how to make it with C#?
Thanks
There’s a couple points to note here but it looks pretty easy to implement.
Your primary control concern is likely to be “how fast does this spread?” and that’s pretty easy to encapsulate in a timer that expires every X seconds.
For actually doing the effect, I don’t know their algorithm (obviously), but I will speculate what they are doing and write you some pseudocode steps:
As for resetting the timer you can make it a random value too, so the slime doesn’t spread with regularity.
The randomness will tend to cause it to get into random different shapes each run.