To add Mr. White, the role system had to be completely refactored. Previously, it simply assigned a different word to a random player. I switched to a much more suitable system, allowing the host player to choose a custom player distribution, with the caveat that it must be valid (for example, there must be more or the same number of civilians as undercovers and Mr. White). For the mobile app, a cool selector with sliders was needed, where the min, max, activated, and divisions had to adapt in real time to the constraints of the number of players and other selected values. To accommodate these new inputs, I also had to rebuild the host waiting page from scratch. I took the opportunity to tweak a few things and fix some bugs. And I realize that my file that manages multiplayer on the mobile app is an unreadable monster of more than 800 lines, but it’s my first flutter project so I don’t really know how to organize this big bag of interconnected knots… Anyway, I’m having fun.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.