From: Zach Laine <whatwasthataddress@ho...> - 2004-02-27 18:42:06
That constant is "the dirty hack" I was talking about. It should definitely
go. One unit of distance should be one unit of distance, regardless of
>From: "Marijn" <m.j.haverbeke@...>
>Subject: [Freeorion-programmers] Galaxy size - constant or variable?
>Date: Fri, 27 Feb 2004 15:45:59 +0100 (CET)
>Galaxy size is currently a constant (Universe::GALAXY_WIDTH). Above this
>constant it says that for galaxies with more stars this stays the same but
>the scale changes - so that would mean that for bigger galaxies the stars
>would be closer (less units) together, and smaller, but the actual size of
>the galaxy would be the same. Some of the other code does not agree with
>this - galaxy generation functions use a fixed minimum distance between
>stars, map drawing draws stars at the same size no matter how many stars
>To implement variable galaxy size we could go two ways - keep the constant
>size and change galaxy generation to place stars closer together in a big
>galaxy, and change the drawing to draw stars smaller in big galaxies - or
>drop the contant size and add lots of stuff to support different sized
>galaxies. I think the second option would probably be the best - if 1
>galaxy unit in one game is not as far as one galaxy unit in another game
>this is going to become a coding nightmare in a lot of the game logic.
>Please tell me what you think about this.
>SF.Net is sponsored by: Speed Start Your Linux Apps Now.
>Build and deploy apps & Web services for Linux with
>a free DVD software kit from IBM. Click Now!
>Freeorion-programmers mailing list
Dream of owning a home? Find out how in the First-time Home Buying Guide.
Get latest updates about Open Source Projects, Conferences and News.