Skip to content

Ask HN: Best approaches for Javascript game graphics?

4 pointsthomanil1 comment
On HN

I'm wondering what the most viable approaches are for 2d (or 3d) graphics in straight browser Javascript?.

Canvas, SVG? Are there other straightforward approaches that offer primitive graphics operations like drawing lines, circles, pixels? Experiences and thoughts on this much appreciated.

(I recently wrote a dinky little javascript game [plug]messynotebook.com/?p=71[/plug]. Straight CSS+DOM worked for me in that case, but I'm looking into better ways of doing it next time.)

Comments

checkout Raphael js it provides cross platform svg type drawing, pretty sweet and that way you can target everyone.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.