Tile-based map

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
corp_jonlan
Posts: 1
Joined: Fri Feb 17, 2006 11:14 am

Tile-based map

Post by corp_jonlan »

Hi, can anyone give me a few pointers regarding creating a map via tiles? Let's say I have a file that contains a 2d-array, either 0 = floor or 1 = wall, and I read from that file and want to add a wall/floor primitve corresponding to it, creating this array in the 3d world?

I used the search a few times, but I only found a few guys saying they would do it that way too, but no explanations on how to. Hope it's clear what I am after.. just think of X-Com or Laser Squad (for those who are fortunate enough to know it ;) ).

What I've tried so far is adding more and more nodes to the scene manager. But it appears to slow down dramatically when I reach map dimensions like 100x100 - and that's only the first layer.
iam13013
Posts: 31
Joined: Sun Dec 04, 2005 11:06 pm

Post by iam13013 »

I suppose since you are adding new nodes, you are using billboards. Try using draw2DImage instead.
Post Reply