web-brogue icon indicating copy to clipboard operation
web-brogue copied to clipboard

HTML5 canvas-based frontend

Open kipraske opened this issue 8 years ago • 2 comments

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.

kipraske avatar Mar 29 '16 15:03 kipraske

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.

tomford avatar Nov 03 '16 19:11 tomford

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

Alloyed avatar Dec 16 '16 08:12 Alloyed