How should game objects with fixed positions in the world be positioned?
        Posted  
        
            by 
                mars
            
        on Game Development
        
        See other posts from Game Development
        
            or by mars
        
        
        
        Published on 2012-03-17T23:03:08Z
        Indexed on 
            2012/03/18
            18:25 UTC
        
        
        Read the original article
        Hit count: 212
        
I have some game objects that are always at the same position in my game world as they make up some of the scenery of my puzzle game. At the moment, their positions are sort of hard coded in and some of their positions are calculated relative to the hard coded positions of other objects at the time of game initialization. This has been hard to maintain because whenever I've decided to change the position of these scenery objects as the game design evolved, I have to go and rewrite parts of the code that place the created objects and calculate their positions in the world.
Is there a more maintainable way of handling the positioning of fixed game objects?
© Game Development or respective owner