preventDefault() fixed; DISABLE_SMOOTHING flag for retro graphics

10 views
Skip to first unread message

si...@nekapuzer.at

unread,
Jan 25, 2013, 2:44:03 PM1/25/13
to gam...@googlegroups.com
i think i found a nice solution for the key problem (gamejs used to swollow all keypress on the page, so the player couldn't even fill out a form).

now, the keys are only suppressed if the display has focus. you have to click the canvas to focus it & initially it's focused. so it's a bit like flash, which i think is
good.

and i added gamejs.display(res, gamejs.display.DISABLE_SMOOTHING)

<http://docs.gamejs.org/gamejs/display/#setMode>

have fun
simon

Domas Lapinskas

unread,
Jan 26, 2013, 4:25:27 AM1/26/13
to gam...@googlegroups.com
awesome :)
--
Domas

andrew gardner

unread,
Jan 26, 2013, 3:24:35 PM1/26/13
to gam...@googlegroups.com
Simon, I am at Global Game Jam in Toronto, and this came at the perfect time!
Thanks :D

-Andrew
Reply all
Reply to author
Forward
0 new messages