
03-11-2010, 06:09 AM
|
Banned
|
Join Date: Feb 2007
Posts: 1,002
|
|
It doesn't sound like you are having an issue with what order to create them in, but rather how modules should interact with one another. A bad plan in terms of module interaction would lead to that feeling of things not fitting right.
How I think about the flow of my scripts is via. input and output, in their abstract senses. For example, input could be normal mouse/keyboard input, as well as input from the the server (triggerclients, detecting attr changes).
Then, there would be some logic that combines different types of inputs, and eventually calls a function to ouput. Output would entail sending something back to the server, or to show an image, or to move the player.
Within both the input and output modules I would likely have further submodules, but keeping the overall seperation helps very much in overall design. |
|
|