eevee/raidne — Issue #16: Custom canvas widget
Author: eevee
Created: 2011-10-19 06:20:44+00:00
State: open

urwid text canvases compare new content to old content, so they only have to redraw parts of the screen that they need to.

But i already know what changed and what didn't, and i'm constructing a big grid of "text" anyway just so urwid can then do a diff on it. This is a hilarious waste of effort.

So write a custom kind of canvas that supports being (ab)used as an arbitrary 2D... well, canvas. Let me just draw crap on it.

For bonus points, make a layered canvas here: one for each of architecture, items, and monsters. Or is that useful at all? It seems cleaner to render, if nothing else, and would perhaps allow for some cute stacking effects like Crawl has.