Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2000:
[Freeciv-Dev] Re: Where can I get that Great Tileset?
Home

[Freeciv-Dev] Re: Where can I get that Great Tileset?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: thue@xxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Where can I get that Great Tileset?
From: Erik Sigra <freeciv@xxxxxxx>
Date: Wed, 30 Aug 2000 22:41:52 +0200

Thue wrote:
> Yes, it would be nice to have it just like civ 2. But as jjm pointed out, a
> client with a tilted map could be a middle step.
> For numbering the tiles for a civ 2 map I would prefer the pattern shown in 
> the
> attached file, as it would make tile iterating more intuitive. (though I don't
> have actual experience with either pattern.)
> Note that, as I have remarked in freeciv_hackers_guide.txt, it would be very
> nice if people would use macros or specialized functions for iterating on the 
> map,
> because it would then be relatively easy to convert the server to a new tile
> pattern (or it could be a run-time configuration.)

I have looked at your numbering pattern/scheme and tried to grasp it. I
found it to have both advantages and disadvantages compared to the
Civilisation 2 Style. Now I think I understand what you ment when you
said:

> Hmm; instead of mangling the isometric view and having a normal civ1-style 
> view
> you could make the isometric view civ2-style and have a mangled civ1-style
> view...
> 
> just a thought
> 
> -Thue

I have attached my observations. Would you please read it through,
confirm/correct my statements and complete with important things I have
forgotten? I really want to understand it fully. I think others are
interested too.

> > > -Thue
> >
> > -Erik
> 
> -Thue

-Erik
Civilisation 2 Style:
=====================

Can be wrapped in 2 dimesions if y is odd.

The coordinate system:

   /\  /\  /\  /\  /\  /\
  /x0\/x1\/x2\/x3\/x4\/x5\
 /\y0/\y0/\y0/\y0/\y0/\y0/
/x0\/x1\/x2\/x3\/x4\/x5\/
\y1/\y1/\y1/\y1/\y1/\y1/\
 \/x0\/x1\/x2\/x3\/x4\/x5\
 /\y2/\y2/\y2/\y2/\y2/\y2/
/x0\/x1\/x2\/x3\/x4\/x5\/
\y3/\y3/\y3/\y3/\y3/\y3/\
 \/x0\/x1\/x2\/x3\/x4\/x5\
 /\y4/\y4/\y4/\y4/\y4/\y4/
/x0\/x1\/x2\/x3\/x4\/x5\/
\y5/\y5/\y5/\y5/\y5/\y5/
 \/  \/  \/  \/  \/  \/

The coordinates of the tiles surrounding (x, y):

                    \(x, y - 2)/
                     \        /
                      \      /
                       \    /
                        \  /
if (y % 2) (x - 1, y - 1)\/(x, y - 1)
else          \(x, y - 1)/\(x + 1, y - 1)
               \        /  \        /
                \      /    \      /
                 \    /      \    /
                  \  /        \  /
         (x - 1, y)\/  (x, y)  \/(x + 1, y)
                   /\          /\
                  /  \        /  \
                 /    \      /    \
                /      \    /      \
               /        \  /        \
if (y % 2) (x - 1, y + 1)\/(x, y + 1)\
else           (x, y + 1)/\(x + 1, y + 1)
                        /  \
                       /    \
                      /      \
                     /        \
                    /(x, y + 2)\


Thue Style:
===========

x must equal y.

Can be wrapped in 2 dimensions although y wrapping would be somewhat strange 
strange.

The coordinate system:

   /\  /\  /\  /\  /\  /\  /\
  /x0\/x1\/x2\/x3\/x4\/x5\/x6\
 /\y0/\y6/\y5/\y4/\y3/\y2/\y1/
/x0\/x1\/x2\/x3\/x4\/x5\/x6\/
\y1/\y0/\y6/\y5/\y4/\y3/\y2/\
 \/x1\/x2\/x3\/x4\/x5\/x6\/x0\
 /\y1/\y0/\y6/\y5/\y4/\y3/\y2/
/x1\/x2\/x3\/x4\/x5\/x6\/x0\/
\y2/\y1/\y0/\y6/\y5/\y4/\y3/\
 \/x2\/x3\/x4\/x5\/x6\/x0\/x1\
 /\y2/\y1/\y0/\y6/\y5/\y4/\y3/
/x2\/x3\/x4\/x5\/x6\/x0\/x1\/
\y3/\y2/\y1/\y0/\y6/\y5/\y4/\
 \/x3\/x4\/x5\/x6\/x0\/x1\/x2\
  \y3/\y2/\y1/\y0/\y6/\y5/\y4/
   \/  \/  \/  \/  \/  \/  \/
 

The coordinates of the tiles surrounding (x, y):

              /\(x - 1, y - 1)/\
             /  \            /  \
            /    \          /    \
           /      \        /      \
          /        \      /        \
         /          \    /          \
        /            \  /            \
       /              \/              \
      /\              /\              /\
     /  \            /  \            /  \
    /    \(x - 1, y)/    \(x, y - 1)/    \
   /      \        /      \        /      \
  /        \      /        \      /        \
 /          \    /          \    /          \
/            \  /            \  /            \
(x - 1, y + 1)\/    (x, y)    \/(x + 1, y - 1)\
              /\              /\              /
\            /  \            /  \            /
 \          /    \          /    \          /
  \        /      \        /      \        /
   \      /        \      /        \      /
    \    /(x, y + 1)\    /(x + 1, y)\    /
     \  /            \  /            \  /
      \/              \/              \/
       \              /\              /
        \            /  \            /
         \          /    \          /
          \        /      \        /
           \      /        \      /
            \    /          \    /
             \  /            \  /
              \/(x + 1, y + 1)\/


Thue Style with Overhead View:
==============================

The coordinate system:

                  +--+
                  |x6|
                  |y1|
               +--+--+--+
               |x5|x6|x0|
               |y2|y2|y2|
            +--+--+--+--+--+
            |x4|x5|x6|x0|x1|
            |y3|y3|y3|y3|y3|
         +--+--+--+--+--+--+--+
         |x3|x4|x5|x6|x0|x1|x2|
         |y4|y4|y4|y4|y4|y4|y4|
      +--+--+--+--+--+--+--+--+
      |x2|x3|x4|x5|x6|x0|x1|
      |y5|y5|y5|y5|y5|y5|y5|
   +--+--+--+--+--+--+--+--+
   |x1|x2|x3|x4|x5|x6|x0|
   |y6|y6|y6|y6|y6|y6|y6|
+--+--+--+--+--+--+--+--+
|x0|x1|x2|x3|x4|x5|x6|
|y0|y0|y0|y0|y0|y0|y0|
+--+--+--+--+--+--+--+
|x0|x1|x2|x3|x4|x5|
|y1|y1|y1|y1|y1|y1|
+--+--+--+--+--+--+
   |x1|x2|x3|x4|
   |y2|y2|y2|y2|
   +--+--+--+--+
      |x2|x3|
      |y3|y3|
      +--+--+

The coordinates of the tiles surrounding (x, y):

The standard coordinates of the plane.


The same city surrounding in Thue Style compared to Thue Style with Overhead 
View:
==================================================================================

   /\  /\  /\  /\  /\  /\  /\
  /x0\/  \/  \/x3\/x4\/x5\/x6\
 /\y0/\  /\  /\y4/\y3/\y2/\y1/
/x0\/  \/  \/  \/x4\/x5\/x6\/
\y1/\  /\  /\  /\y4/\y3/\y2/\
 \/  \/  \/  \/  \/x5\/x6\/x0\
 /\  /\  /\  /\  /\y4/\y3/\y2/
/x1\/  \/@@\/  \/x5\/x6\/x0\/
\y2/\  /\@@/\  /\y5/\y4/\y3/\
 \/  \/  \/  \/  \/x6\/x0\/x1\
 /\  /\  /\  /\  /\y5/\y4/\y3/
/x2\/  \/  \/  \/x6\/x0\/x1\/
\y3/\  /\  /\  /\y6/\y5/\y4/\
 \/x3\/  \/  \/x6\/x0\/x1\/x2\
  \y3/\  /\  /\y0/\y6/\y5/\y4/
   \/  \/  \/  \/  \/  \/  \/

                  +--+
                  |x6|
                  |y1|
               +--+--+--+
               |x5|x6|x0|
               |y2|y2|y2|
            +--+--+--+--+--+
            |x4|x5|x6|x0|x1|
            |y3|y3|y3|y3|y3|
         +--+--+--+--+--+--+--+
         |x3|x4|x5|x6|x0|x1|x2|
         |y4|y4|y4|y4|y4|y4|y4|
      +--+--+--+--+--+--+--+--+
      |  |  |  |x5|x6|x0|x1|
      |  |  |  |y5|y5|y5|y5|
   +--+--+--+--+--+--+--+--+
   |  |  |  |  |  |x6|x0|
   |  |  |  |  |  |y6|y6|
+--+--+--+--+--+--+--+--+
|x0|  |  |@@|  |  |x6|
|y0|  |  |@@|  |  |y0|
+--+--+--+--+--+--+--+
|x0|  |  |  |  |  |
|y1|  |  |  |  |  |
+--+--+--+--+--+--+
   |x1|  |  |  |
   |y2|  |  |  |
   +--+--+--+--+
      |x2|x3|
      |y3|y3|
      +--+--+

[Prev in Thread] Current Thread [Next in Thread]