How should I model an economy-based game in code?

Posted by Matthew G. on Game Development See other posts from Game Development or by Matthew G.
Published on 2013-10-30T01:49:29Z Indexed on 2013/10/30 16:15 UTC
Read the original article Hit count: 239

Filed under:
|

I'd like to create an economy game based on an ancient civilization. I'm not sure how to design it. If I were working on a smaller game, like a copy of "Space Invaders," I'd have no problem structuring it like this:

  • Main Control Class
  • Graphics Class
  • Player Class
  • Enemy class

I don't understand how I'd do this for larger projects like my economy game. Do I create a country class that contains a bunch of towns? Do the towns contain a lot building class, most contain classes of people? Do I make a path finding class that the player can access to get around?

© Game Development or respective owner

Related posts about java

Related posts about architecture