Skip to main content
gamedev.net
🔒 Locked

Tile Based 2d Engine

Started by OoMMMoO 3 replies 400+ views
Original Post
OoMMMoO
OoMMMoO
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 }
Julio
Julio
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.

JoeMont001@aol.com www.polarisoft.n3.net
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.