3 ms·
I’m not a game programmer, but in complex systems I’ve programmed in the the past there are state machines that help you avoid problems. It’s very hard especia
by acomjean 7y ago
I’m not a game programmer, but in complex systems I’ve programmed in the the past there are state machines that help you avoid problems.
It’s very hard especially if functionality gets added mid process (the companion can die now).
I had a piece of code log (“you should never get here”) once before crashing. Some programmer long gone put a constraint check with that strange note.
- int_19h 7y agoGames usually have state machines as well, but you can't have a single state machine for the whole world. So it ends up being a state machine per actor, usually - and every actor can potentially interact with most other actors.