RTS map format...

Blitz3D Forums/Blitz3D Programming/RTS map format...

poopla(Posted 2003) [#1]
How would you guys suggest I design the map structure for an RTS?

General question so im looking for some general answers :). Major details arent required but would be appreciated.

[edit] Its a 3d map.


mearrin69(Posted 2003) [#2]
I think it's going to depend a great deal on what features you need. Like: just terrain or do you also need lineal (it's a word, really) features like roads, rivers, fences, etc. and areal (again :) ) features like lakes, forests, terrain types. Also, what about buildings, etc.

Can you give some more details about what data you need in there?
M


poopla(Posted 2003) [#3]
yeah, serious features like found in WC3 would be great, and a huge/MASSIVE undertaking. Any thoughts?


_PJ_(Posted 2003) [#4]
I would use an image file. Combine with ReadPixelFast, the image file can be loaded into a specific buffer.

Similar to Loading Terrains, (which the image file can double up as,) except that the Blue and Green color values have a meaning too. For instance Blue may represent trees or a type of building, green may be used for trigger areas etc.


poopla(Posted 2003) [#5]
Thats not a bad idea Malice. Keep idea comming tho :), very helpful.


Jeppe Nielsen(Posted 2003) [#6]
Use an array of types, then you can easily add more features to the terrain by adding more fields to the type.


Dim Terrain.tile(Wid,Dep)

Type tile

Field Height#

Field Walkable

End Type



This is what I have done in my RTS


poopla(Posted 2003) [#7]
Thanksjeppe, I think I will start with something like that and build on. Thanks everyone.