Program Structure Question

BlitzMax Forums/BlitzMax Programming/Program Structure Question

BLaBZ(Posted 2010) [#1]
I've always had a difficult time organizing my code in a way that makes it easy to expand and maintain,

Would you say it's a good idea to "network" all game objects with multiple "has-a" relationships?

I came across something called the strategy design pattern and it made me think this is a great idea when it comes to code organization.

Tell me what you think!


Czar Flavius(Posted 2010) [#2]
I just make a few folders to store related types, such as bullets, objects, terrain, interface etc and generally have a game type that contains scores and the players etc, and also contains a world type that contains the map (eg array) and a list of all things in the world (players, enemies, bullets) that it updates every frame.