No not on Libtcod but instead on trying to program a roguelike without something like it. I don't currently know enough about putting pictures on screen to make what I want on my own. I "tried" in the 7DRL but used a library to display the screen and it did not allow me the control of the the console that I wanted.
I have given up and thus can proceed with it as Libtcod does all that I need and then some. I actually have my recursive shadow casting code all tidied up into a library so I could technically use it but Libtcod comes with basically the same code already built in so using my library would just add another complication. I could just use the generic C# random number generator but Libtcod has a slightly better generator and allows me to specify the seed so I can get the same string of numbers whenever I want.
I do however still plan to work on the pathfinding myself as it interests me and I want to see what I can do with it before just using Libtcod's built in pathfinding.
There may be a few posts on Libtcod in specific and the Roguelike I will be slapping together but nothing is certain as Collage just started up on Monday so my schedule may less free time in it real soon. Anyway a few things I picked up while testing Libtcod.
- The libtcod 1.5.1 c# download did not have terminal.png in it which is the default font so your code will fail for lack of it. To get it you can get any of the other 1.5.1 downloads and maybe any of the downloads though I have only checked the 1.5.1 versions. (or just change the default font if you happen to have another just laying around)
- You need libtcod-net-unmanaged.dll in the same folder as your .exe and libtcod-VS.dll needs to be with it. libtcod-VS.dll also needs to be in the same folder as libtcod-net.dll so basicly its easier to have them all just in there with your exe. A quick list of what I had in with the exe to get libtcod running correctly:
- I use Microsoft Visual Studios for this as I get a good version of it free through collage. Making the game as a console app works fine though normally you would have the blank console that normally appears as well as the game console made by Libtcod. You can get rid of the blank one through project properties and changing output type from console application to windows application.
- libtcod-net.dll is the one you add as a reference, you don't need to add any of the others.