Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I am trying to decide which will be the best design pattern for my game

 
simy ryan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to decide which will be the best design pattern for my game. I would like to know what Design Patterns are you guys using in unity 3D.


Also, which design patter will be the most appropriated for my game?

PS: My game needs is full 3d ,with levels, lots of models, different cameras, and multi player. Imagine warcraft3 for instance.

There is any example of a MVC implementation?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12085
29
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess (and I have never written a game) is that any program as complicated as Warcraft is going to use pretty much EVERY design pattern. I could easily see them using factories, adapters, bridges, composites, facades, proxies, commands, iterators, observers, strategies...and MVC. Your question to me seems overly broad. It's almost like asking "what class should I use?". The answer is 'whichever one is most appropriate for the problem you are currently trying to solve', and writing a game there are going to be HUNDREDS (if not more) problems to solve, and each will require it's own solution.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My advice would be - don't start with patterns - instead, start with lots and lots and lots of use cases and diagrams of information flow.

Before any code is written be able to walk players through the major interactions "on paper" - patterns should become apparent at this stage. Of course, it helps if you are familiar with patterns other people have deduced so you can recognize them.

3 x 5 cards for use cases and large expanses of white-board for diagrams are your friends.

Bill

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic