You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to extend this by allowing interactive functions, such as killing some prey, killing some predators, restarting, etc. The default terrarium functions .animate() and .stop() function propperly. How can I add new functions to this terrarium?
I tried figuring out how to do this in the terra.js module, which sort of worked, but I'm looking for advice on how to do this "neatly" in javascript.
UPDATE: i've mostly overwritten the old version, so most of the functionality I discuss here is now implemented.
Bram
The text was updated successfully, but these errors were encountered:
Heya,
Using terra.js, I just made a simple predator prey CA that results in traveling/chaotic waves:
http://theoreticalbiology.nl/spiders/
I'm looking to extend this by allowing interactive functions, such as killing some prey, killing some predators, restarting, etc. The default terrarium functions .animate() and .stop() function propperly. How can I add new functions to this terrarium?
I tried figuring out how to do this in the terra.js module, which sort of worked, but I'm looking for advice on how to do this "neatly" in javascript.
UPDATE: i've mostly overwritten the old version, so most of the functionality I discuss here is now implemented.
Bram
The text was updated successfully, but these errors were encountered: