Members - Reputation: 106
Posted 13 June 2012 - 03:13 PM
I've been developing a turn-based game, which has both single player and (local) multiplayer options. The gameplay is largely similar between the two apart from the fact that CPU controls one of the turns in single player.
Is it wise to make a separate Android activity for both options or make one activity which handles both via booleans etc?
Thanks in advance
Moderators - Reputation: 39037
Posted 13 June 2012 - 03:45 PM
Creating a second will add significant complexity and therefore add bugs, but you are only getting a tiny benefit of trying to simplify multiplayer.
It would be easier and less error-prone to design your game core such that you can create multiple object instances, one instance per player.
Edited by frob, 13 June 2012 - 03:45 PM.
Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.
Also check out my personal website at bryanwagstaff.com, where I occasionally write about assorted stuff.