kipraske / web-brogue

Play brogue in a web browser
GNU General Public License v2.0
20 stars 17 forks source link

HTML5 canvas-based frontend #46

Open kipraske opened 8 years ago

kipraske commented 8 years ago

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.

tomford commented 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.

Alloyed commented 7 years ago

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