Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


SP/Mp activities for Android


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Da49   Members   -  Reputation: 106

Like
0Likes
Like

Posted 13 June 2012 - 03:13 PM

Hi guys.

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 :)

Sponsor:

#2 frob   Moderators   -  Reputation: 31280

Like
0Likes
Like

Posted 13 June 2012 - 03:45 PM

I would keep it as one.

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.
clarity

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.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS