Tilemaps
by Justin Zaun · in General Game Discussion · 01/09/2010 (1:36 am) · 1 replies
Hi,
I'm new to TGB but I am learning as I go. I'm used to c++ coding and using a base library like SDL for graphics, I've contributed to BZFlag and Wesnoth so I know how to program and write games but this method puts a lot on the programer to make an actual game and thats why I'm looking into TGB.
I've figured out file IO and I'm starting to get a grasp on things by following the tutorials. What I'm looking for is a tutorial, or a sample project I could download that would load a map from file (can be dirt simple), setup the tile map and layer, let me walk around (smooth, not tile by tile).
I see the method I would use, setStaticTile(%tileX, %tileY, %imageMap, [%frame]) but I'm just running into a brick wall (most likely in my own head someplace) and can't put all the pieces together. Is there such a tutorial or demo project?
Thanks in advance!
Justin
I'm new to TGB but I am learning as I go. I'm used to c++ coding and using a base library like SDL for graphics, I've contributed to BZFlag and Wesnoth so I know how to program and write games but this method puts a lot on the programer to make an actual game and thats why I'm looking into TGB.
I've figured out file IO and I'm starting to get a grasp on things by following the tutorials. What I'm looking for is a tutorial, or a sample project I could download that would load a map from file (can be dirt simple), setup the tile map and layer, let me walk around (smooth, not tile by tile).
I see the method I would use, setStaticTile(%tileX, %tileY, %imageMap, [%frame]) but I'm just running into a brick wall (most likely in my own head someplace) and can't put all the pieces together. Is there such a tutorial or demo project?
Thanks in advance!
Justin
About the author
Torque 3D Owner Brian McLain
I don't know if this is what you're looking for but at the end of the old and outdated Tile Map Builder tutorial (or whatever it's called) there is a little snippet on how to load a tilemap from script.
http://tdn.garagegames.com/wiki/Torque_2D/Tile_Map_Editor_Tutorial
However if you're looking for something that actually reads the file in a binary form like a header definition then I would check the source.
LOL Funny thing is I'm looking for something similar but not quite LOL Hope it helps :D