I was wondering how you determine which tiles are placed were and how your tile struct is made.
do you have something like
struct tile
{
BOOL walkable;
int tile; //number to represent tile
int x; //x,y coordinate
int y;
int frames[]; //number of frames if animated
}
when I wrote a little tile engine demo I just loaded the data from a file. the file contained an x and y position. just put that in an array and it''s easy as pie from there. you can check out the demo on my site.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform.
You can accept analytics or continue with necessary cookies only.
Learn more