Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Performance and the fly likes  I am trying to decide which will be the best design pattern for my game Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark " I am trying to decide which will be the best design pattern for my game" Watch " I am trying to decide which will be the best design pattern for my game" New topic
Author

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

simy ryan
Greenhorn

Joined: Jan 03, 2011
Posts: 1
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?


PHP Design Patterns
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11155
    
  16

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.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am trying to decide which will be the best design pattern for my game
 
Similar Threads
Best way to represent cards?
design pattern ?
Java +Game development
This weeks giveaway
Design Pattern ResourceBundle