Author Topic: v0.8 WIP: cellmap  (Read 5343 times)

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
v0.8 WIP: cellmap
« on: 13 June 2004, 18:46:55 »
We are working on a new feature for version 0.8 called cell maps. Each unit can have a 2D matrix of cells that indicates what cells does the unit ocupy in the map, this allows units to pass through building gates and produced units to exit from buildings by foot instead of appearing suddenly.

Here is a screen of this effect:

« Last Edit: 22 June 2004, 16:15:09 by martiño »

StrikerShot21

  • Guest
(No subject)
« Reply #1 on: 13 June 2004, 18:49:46 »
Hell yeah!!! Now I can have my tanks roll out of the war factory. I was about to ask for this feature today but you read my mind.

(As you can see, I am obsessed with this game and I check the forums every five minutes)
« Last Edit: 1 January 1970, 00:00:00 by StrikerShot21 »

Andrewinator

  • Guest
(No subject)
« Reply #2 on: 14 June 2004, 00:16:05 »
O.o impresive! And is seems a lot more efficient than per-poly collision detection.
« Last Edit: 1 January 1970, 00:00:00 by Andrewinator »

StrikerShot21

  • Guest
(No subject)
« Reply #3 on: 17 June 2004, 06:05:00 »
How would we apply this in the scripting? (what would the script look like?)

(Yay!!! Today is my birthday!!! I am officially 13)
« Last Edit: 1 January 1970, 00:00:00 by StrikerShot21 »

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
(No subject)
« Reply #4 on: 17 June 2004, 16:16:34 »
Like that:

      <cellmap value="true">
         <row value="1011"/>
         <row value="0000"/>
         <row value="1011"/>
         <row value="1011"/>
      </cellmap>
« Last Edit: 1 January 1970, 00:00:00 by martiño »

StrikerShot21

  • Guest
(No subject)
« Reply #5 on: 17 June 2004, 16:46:19 »
Ok, I think I get it. The 1s mark the boundries and the 2s mark the places where the units can walk. I noticed the spacing of the building in text was 4x4, how did you determine that? I assume you counted the grid spaces that it took up.
« Last Edit: 1 January 1970, 00:00:00 by StrikerShot21 »

StrikerShot21

  • Guest
(No subject)
« Reply #6 on: 29 June 2004, 03:08:41 »
Ok here is a question for you, can you input the numbers like this:

   0.5, 0.5, 0.0, 0.5, 0.5, 0.5, 0.5, 0.5
   0.5, 0.5, 0.0, 0.5, 0.5, 0.5, 0.5, 0.5
   0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
   0.5, 0.5, 0.0, 0.5, 0.5, 0.5, 0.5, 0.5
   0.5, 0.5, 0.0, 0.5, 0.5, 0.5, 0.5, 0.5
   0.5, 0.5, 0.0, 0.5, 0.5, 0.5, 0.5, 0.5
   0.5, 0.5, 0.0, 0.5, 0.5, 0.5, 0.5, 0.5
   0.5, 0.5, 0.0, 0.5, 0.5, 0.5, 0.5, 0.5

that way it will be more accurate for games with smaller units (like mine)
« Last Edit: 1 January 1970, 00:00:00 by StrikerShot21 »

enveloop

  • Guest
(No subject)
« Reply #7 on: 7 July 2004, 19:35:41 »
It shouldn´t take too long, we have scheduled v1.0 for early september.
« Last Edit: 1 January 1970, 00:00:00 by enveloop »

 

anything