3 ms·
I just learned about state machines last month in preparation for NaNoGenMo. They're pretty cool! I squeeled with joy to realize that Markov Chains can be a for
by kleer001 8y ago
I just learned about state machines last month in preparation for NaNoGenMo. They're pretty cool! I squeeled with joy to realize that Markov Chains can be a form of state machine.
Then I started coding an adventure and the if statements began to pile up. Escalated quickly.
Now I have to refactor the protagonist's narrative engine library if I want to add more complexity and reduce total lines code. It'll take a bit, and maybe I can't finish by the end of the month, but it'll allow for more emergent behaviour. Going to lean towards "Utility Functions" as they're called.