Added a lot of features, discovered so many bugs ToT
I made food and water sources, represented by the big red and blue squares, which the creatures will search for if their hunger or thirst levels get too low. If either of those levels hit zero, the creature dies and gets removed from the board. This introduced some errors because I had to remove the creature from the dictionary holding it, leaving a gap in my numerically organized keys. I tried solving this by adding the deleted key to a list of open keys that will be reused when creating new creatures instead of just randomly generating a new one. I’m still not sure if it worked though, because…
The mating feature is so broken. I made it so that the creatures are either AFAB or AMAB, and they are color coded accordingly (pink for female, blue for male). I’m thinking about adding a third gender that can reproduce asexually, but that’s a task for future me lol. Right now they will immediately reproduce with any creature of the opposite gender within range if they’re above critical hunger and thirst levels. This is a problem because now they are making so many babies that they are freezing the window! I need to fix it so that I can properly debug the code and see if my fix for the death errors is actually working. Plus there is a whole wall of error messages in the console before it freezes up, so I need to decipher and fix those too. I’ve got my work cut out for me!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.