hi guys,
good point! gamejs needs this.
i have played around with those options, as you can see here:
https://github.com/oberhamsi/gamejs/blob/master/lib/gamejs.js#L566
.. and i set them exactly wrong for pixel art :) the other "image-rendering" and interpolation properties are related
to how the canvas gets scaled if the browser zooms. i suggest we extend _smooth() to work for all browser and
document what the other options related to this do and how to properly set them. i would not expose _smooth() (it
stays hidden and internal as it is).
a global option would totally make sense. I would make it a flag on display.setMode(); e.g.:
gamejs.display.setMode([800, 600], gamejs.DISABLE_SMOTHING)
...and that would make sure every created surface and of course the display itself have smoothing disabled.
i don't see anything about this in the w3c spec... does anyone know what they think about that?
simon