flash - What design pattern is best for an RTS game in AS3? -


i'm looking books on design patterns , i'm wondering particular pattern you'd recommend realtime strategy game (like starcraft), mvc?.

i'd make basic rts in flash @ point , want start studying best pattern this.

cheers!

the problem kind of question answer depends on design. rts games complicated simple ones. have many systems have work , each of systems has designed differently common goal.

but talk little here goes.

the ai system in rts has few different levels it. there unit level ai can simple switch based state machine way full scale behavior tree (composite/decorators). need type of high level planning system strategic level ai. (the commander level , ai player) there few levels in between , side things resource managers etc. can go event based systems tie in nicely flash's event based model well.

for main game engine basic state machine (anything switch based function based class based) can implemented tie , tie in menu system that.

for individual players model-view-controller natural pattern aim because want ai players exposed human player has access to. change controller (the brain) without need view obviously.

as said isn't can answered normal stackoverflow question dependent on design , how decide implement it. (like things) there tons of resources out there rts game design , taking in advice can give. simple rts's complex systems.

good luck , hope post gives idea of how think it. (remember balance in rts)


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -