How do you get a tileset to work in the module example?
Posted: Tue Jun 25, 2019 1:35 am
I asked this question in the module section but haven't gotten a response. I guess I will try again here.
I would like to use T-Engine4 to develop a roguelike but I'm having a lot of trouble figuring one thing out. I want to modify the simple example project to use a tileset rather than ascii for the random dungeon that it generates. Simple right? No. For for the life of me I can't get it to work.
I put my tile images in a 'terrain' directory under the gfx folder. In the general/grids/basic.lua file I pointed the walls and floors to my tileset images (name = "wall", image = "terrain/granite_wall1.png", for example). However, no matter what, it still loads up showing ascii instead of the tiles. Tilesets are enabled in my game options so I can't figure out why it doesn't use my tile images. I must be missing a step somewhere.
After days of trying to figure this out, I'm beyond frustrated. Nowhere in the 'how to' documentation does it mention tilesets at all. There are no examples there. I looked at the Hulk module and as far as I can tell, I'm doing what they did there but it still doesn't work.
Can someone please tell me what what steps I need to do to get my tileset images to be used as walls and floors in the example module? Thanks.
I would like to use T-Engine4 to develop a roguelike but I'm having a lot of trouble figuring one thing out. I want to modify the simple example project to use a tileset rather than ascii for the random dungeon that it generates. Simple right? No. For for the life of me I can't get it to work.
I put my tile images in a 'terrain' directory under the gfx folder. In the general/grids/basic.lua file I pointed the walls and floors to my tileset images (name = "wall", image = "terrain/granite_wall1.png", for example). However, no matter what, it still loads up showing ascii instead of the tiles. Tilesets are enabled in my game options so I can't figure out why it doesn't use my tile images. I must be missing a step somewhere.
After days of trying to figure this out, I'm beyond frustrated. Nowhere in the 'how to' documentation does it mention tilesets at all. There are no examples there. I looked at the Hulk module and as far as I can tell, I'm doing what they did there but it still doesn't work.
Can someone please tell me what what steps I need to do to get my tileset images to be used as walls and floors in the example module? Thanks.