Design pattern is a general reusable solution to a commonly occurring problem within a given context in software design.

learn more… | top users | synonyms

0
votes
2answers
124 views

Unity - Toolbox pattern is not safe

When I create a toolbox such is in this tutorial. How do I defend against breaking the pattern with multiple instances like this: gameObject.AddComponent<Toolbox>(); ...
0
votes
2answers
51 views

Behavior Tree with interrupted sequence

I'm reading up on Behavior Trees and would like to know how a good implementation for a scenario where the conditions can change or where a selector with a higher priority interrupts the current one. ...
1
vote
0answers
161 views

Tip on turn based game AI

I'm quite new in video game AI, and I'm trying to design an AI for a turn based game. The rules are simple: The battle field is represented by an NxM board. The game is between two team, each team ...
1
vote
0answers
74 views

Security-minded design patterns / paradigm for client/server application

I am working on a client/server application and am starting to take it from proof-of-concept to actual implementation. The client is an Android application and the server is in PHP. In similar ...
0
votes
0answers
32 views

what is an elegant way to add a border to a hexagonal grid

At the moment in my hexagonal map generator, I am working from the idea of generating the grid, doing some nasty conditional logic to check if grid position is within the scope of the border and ...
0
votes
0answers
31 views

Unity State machine behavior practice

I have few scripting design question regarding the SMB. I am excited to apply the state machine pattern after learning about it to my players and monsters alike and was so happy that SMB is exactly ...
0
votes
0answers
219 views

Quest/Dialog Tree XML template

I'm looking for a good XML template, so I can create my quests/dialogs easily. It should be something which permits: multi-staged quest/dialogs with branching. ask user for some choice, to traverse ...
0
votes
0answers
127 views

Unity Input manager with chain of responsibility and delegates

I am working with unity and I am trying to build a better input system for my game. In essence there would be a singleton class that is the input manager. The player would subscribe to the manager ...
0
votes
0answers
68 views

How can I position different size creatures in a group automaticly

I'm doing a game (in xna) on my free time, as I'm not in the game market, I'm pretty sure I'm missing something that would help me get this right. Think of Ogre Battle. A group of unit moves, and ...