- Steam App
- Human Factory (1160040)
- Event type
- patch note
- Published
- 27 November 2020 - 15:29:33 UTC
- Source
- steam_community_announcements
Friday 13th: Thinking deeply about the Human code. Essentially Humans have an 'Activity' and a 'Target', the conditions of which constantly helping them decide what to do next. I think the only problem with this is that it's messy, so perhaps I could start taking more steps to clean it up. It gets a bit awkward jumping around between 'find item', 'pick up item', 'bring item to my target' etc etc etc. 'Getting Food for Baby' and 'Going to feed Baby' kind of get mixed up in my head. We could try something I don't have a lot of experience with, which is co-routines. But I think this way is working fine and I don't want to break everything. I think I'm just going to do a bit of organizing in here. I'm thinking in terms of organizing code by function rather than trying to cut down on simple bools. For example, I prefer to ask more often per update 'if Dead == false' rather than putting all of...