Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best cross-browser approaches for Javascript game graphics?

I'm wondering what the most viable approaches are for 2d game graphics, running in straight (and cross-browser) Javascript?

I've found the canvas and SVG approaches so far. Are there other straightforward methods that offer primitive graphics operations like drawing lines, circles, pixels? Preferrably supported out of the box in IE, unlike canvas/svg. :)

(I recently wrote a dinky little javascript game. Straight CSS+DOM worked for me in that case, but I'm looking into better ways of doing it next time.)

-ThomasN

like image 233
thomanil Avatar asked Nov 06 '22 22:11

thomanil


1 Answers

You can have a look at this very simple library:

http://fx.inetcat.com/

Quoting their manual:

Compact lightweight JavaScript library which extends DOM element by adding animation methods. Facilitates CSS properties and other parameters alteration along timeline. Supports parallel effects sets and effects chains. Has extended set of callbacks to adjust behavior.

If you follow the manual you see how easy is to make animations.

like image 187
Paulo Lopes Avatar answered Nov 11 '22 19:11

Paulo Lopes