gitdefence / game-off-2012

Build networks, destroy bugs
http://www.justinmcgirr.com/gitdefence/master/game/
5 stars 1 forks source link

Touch #108

Closed crazy2be closed 11 years ago

crazy2be commented 11 years ago

Touch is working now on my Android in the native browser.

It's not totally perfect, because the game doesn't take up the full browser window like it should. However, it's pretty good, and certainly much better than it was.

I also renamed this -> self in inputHandler (I've been doing that in lots of other files too lately), because this allows us to pass member functions to to callbacks without using bind(), and allows us to have private functions without having to do var that = this; nonsense everywhere.

crazy2be commented 11 years ago

I actually think I might try and do some more cleanup in InputHandler, so don't merge this yet please.

crazy2be commented 11 years ago

Also testable "live" at http://www.justinmcgirr.com/gitdefence/touch/game/

crazy2be commented 11 years ago

Actually, my fixes would be harder than I thought, so you can merge this if you want.