Announcement

Collapse
No announcement yet.

Palace

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Palace

    Ok, I know that the palace building isn't implemented, but here's my $0.02 as of how to do it (and if any dev's think this be fine, I have no prob patching myself):

    Have the following files:

    /palaces/styleA/background.png
    /palaces/styleA/palace.png
    /palaces/styleA/cutup.conf

    contents of cutup.conf (I'll use XML to make easier to read on bb):

    <palace>

    <section>

    <id>1</id>
    <x>640</x>
    <y>240</x>
    <w>320</w>
    <h>240</w>

    </section>

    <section>

    <id>2</id>
    <x>0</x>
    <y>0</y>
    <w>640</w>
    <h>240</h>
    <requires>1</requires>

    </section>

    </palace>

    This would cut the 640x480 palace.png in half with the upper section requiring the lower section.

    The server would keep track of each player's palaces, AI wouldn't care, and they could be protocol could add a command like : PALACE BUILD 'id'
    When a player wanted to view their (or someone elses) palace, the server would respond back with the sections they have filled in. Assuming that all parties have the same place styles... As for when you can improve is open to debate of course.
Working...
X