I was adding some very basic UI, when I noticed that the timescale didn't really increase as I expected. When looking around in the keyinput code I found some possible improvements and ended up throwing a large part of the code away. It still works perfectly though (actually even better!).
Also, I noticed some strange things. When looping through the creatures in the main.js file, there are variables being created for each creature. They are then updated with some formulas, and so on, only to be thrown away at the end of the loop. Is there something I'm missing? It looks to me this is unnecessary work and possibly even a bug (if the values were intended to be saved).
I was adding some very basic UI, when I noticed that the timescale didn't really increase as I expected. When looking around in the keyinput code I found some possible improvements and ended up throwing a large part of the code away. It still works perfectly though (actually even better!).
Also, I noticed some strange things. When looping through the creatures in the main.js file, there are variables being created for each creature. They are then updated with some formulas, and so on, only to be thrown away at the end of the loop. Is there something I'm missing? It looks to me this is unnecessary work and possibly even a bug (if the values were intended to be saved).