Temple of The Roguelike Forums
Development => Programming => Topic started by: wire_hall_medic on June 25, 2019, 02:23:23 AM
-
Hey guys; I made a thing.
I really like libtcod, but as I use Java as a preference, I wanted something in the same vein for that language. I packaged up and documented a lot of the stuff I've made over the last couple years, and put it up on GitHub. I'll make a RogueBasin page for it soonish, but here it is now.
https://github.com/WireHallMedic/WidlerSuite (https://github.com/WireHallMedic/WidlerSuite)
The documentation is in _Widler Suite API.rtf, and the .jar has a demo of most of the classes.
Lemme know what you think!
-
Randomly picked Room.java and I already found something to nitpick. You are using Coord class also for size, but I think it's a bad idea. Much better is just create a class for size that has width and height variables.
-
I use Coords for anything where I need paired ints which represent perpendicular axes. I agree that from a conceptual standpoint size and location are different, but I prefer to use the same tool for mechanically identical things. Of course, it'd be trivial for you to adapt it to accept a Dimension object.
Also, thank you for your feedback. A thread isn't official until it has that special Krice touch (I mean this sincerely, by the way).
-
but I prefer to use the same tool for mechanically identical things.
Then you shouldn't even use classes, because plain variables can do everything from "mechanical" point of view. But I do get it, some people have "special" thoughts about programming. I think we all do at some point, but in most cases it's going to backfire on us.