Ruleset-defined spaceship shape

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
User avatar
Caedo
Elite
Posts: 476
Joined: Sun Feb 10, 2013 10:21 pm
Location: Stuttgart, Germany

Ruleset-defined spaceship shape

Postby Caedo » Sun Feb 02, 2014 11:09 am

[Moderator note: split from "Changes in what a rule set can do" topic since that's meant to be about stuff that has happened, not stuff that people would like to happen. --jtn]

I just had another idea. What if rulesets could affect the way spaceships are built? As in, defining where which parts go.
Example: new file "spaceship.ruleset":

Code: Select all

[spaceship]
; coordinates start at 0,0
dimX = 10
dimY = 6
structurals =
    { "x", "y"
        6,   2
        6,   3
        5,   2
        5,   3
        4,   2
        4,   3
        3,   2
        3,   3
        2,   2
        2,   3
        6,   1
        6,   4
        6,   0
        6,   5
        7,   0
        7,   5
    }

components =
    { "x", "y"
        7,   2
        7,   3
        7,   1
        7,   4
    }

modules =
    { "x", "y"
        4,   0
        2,   0
        0,   1
        4,   4
        2,   4
        0,   3
    }

That would then look like this, fully built:
spaceship.png
Image of the example spaceship
spaceship.png (11.75 KiB) Viewed 1637 times
~S.C. L.

User avatar
HanduMan
Posts: 44
Joined: Sat Feb 02, 2013 9:14 am

Re: Ruleset-defined spaceship shape

Postby HanduMan » Sun Feb 02, 2014 6:00 pm

Support!