Demonstration of fast rendering in libtcod using Python and NumPy. Rendering tiles with complex effects in Python is usually slow. Here, all rendering is done using fast NumPy array manipulation, and then blitted to the main console with console_fill_background.
Thanks everyone :) Yeah these are not really pixels, but cells. Libtcod is supposed to work as a console, but since you can color cells anything you want, it can double as a (low-res) rendering system!
Thanks everyone :) Yeah these are not really pixels, but cells. Libtcod is supposed to work as a console, but since you can color cells anything you want, it can double as a (low-res) rendering system!
djipelota 1 year ago
@djipelota cool stuff! what about pygame for rendering? ;-)
DonQuichotteLiberia 10 months ago
@DonQuichotteLiberia Awesome idea!! Pygame already has some functions to directly set a pixel buffer, so it shouldn't be hard to do.
If you wanna download my code and do that for Pygame, I've posted a link in this video's description.
djipelota 10 months ago