evolvio4all / evolvio4JavaScript

MIT License
10 stars 2 forks source link

Keyinput cleanup and very basic UI #18

Closed winnie334 closed 5 years ago

winnie334 commented 5 years ago

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).

winnie334 commented 5 years ago

Thanks, I'm happy you took your time to comment specifically on each of my comments as well! It clears some things up.