Open kipraske opened 8 years ago
I have actually done this as a prototype using rot.js [https://github.com/flend/web-brogue/tree/feature/rotjs]. I found performance comparable to the DOM on Chrome (which was a bit disappointing) so I didn't go any further. However, it would support tiles mode. For brogue-tiles we'd need the permission of the Oryx.
note: I got similarly bad results with canvases on df-webfort, which is basically this but dwarf fortress.
I had another prototype that used WebGL that effectively removed the graphics slowness, but I think I moved on before I finished it. Still, recolors are much easier when you can do them in a shader :p
Currently uses the DOM which works well in some browsers but not others (like Firefox). If we implement a webGL alternative it would probably perform better in all webGL enabled browsers. This would be lots of work, but almost certainly worth it.