Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - crowtongue

Pages: [1]
1
Programming / Python + Libtcod Filling Rooms
« on: January 17, 2013, 04:21:37 AM »
So I finished working my way through the Python Libtcod tutorial on RogueBasin. Since I have no Python background instead of copying the code I typed it all out, resolved the errors from my mistakes, and have been following a couple of Python tutorials to help me get more familiar with the language.

I've added a new room type to my game, changed it to tiles, and created a system for randomly changing some tiles in a room to give it a more dynamic look.

Although I've created a new room type, it currently just draws the outline of the room (a circle.) I have no idea how to go about filling it. I've found some diagrams talking about scanline filling, and they seem to make sense, but I have no idea how to implement them.

http://www.cs.ucdavis.edu/~ma/ECS175_S00/Notes/0411_b.pdf

 I'd like to create a function so later when I make more roomtypes I can use the same function.

This thread seems useful, but I'm still not sure how to go about doing this.

http://roguetemple.com/forums/index.php?topic=2637.0

I am willing to put the work in, and am not looking for someone to do all the work for me, just want some help getting through this.

Thanks!


Pages: [1]