hyperandroid / CAAT

Canvas Advanced Animation Toolkit
hyperandroid.github.com/CAAT
MIT License
727 stars 117 forks source link

Running startup-with-splash using caat-css throws error... #71

Closed stringa closed 11 years ago

stringa commented 12 years ago

the current build of caat throws an error on the demo provided.

Uncaught TypeError: Cannot call method 'addEventListener' of null caat-css.js:10828 CAAT.Director.addHandlers caat-css.js:10828 CAAT.Director.createEventHandler caat-css.js:11011 CAAT.Director.enableEvents caat-css.js:10865 CAAT.Director.initialize caat-css.js:10923 CAAT.modules.splash.ShowDefaultSplash template-with-splash.js:110 (anonymous function)

Thanks, stringa

stringa commented 12 years ago

if ( CAAT.TOUCH_BEHAVIOR === CAAT.TOUCH_AS_MOUSE ) { this.canvas.addEventListener("touchstart", this.__touchStartHandler.bind(this), false);

this.canvas === null here.

hyperandroid commented 12 years ago

Happens because i've recently added multitouch support. Fixing.

kwikfun commented 11 years ago

I don't need multitouch, but I do want to run my app using CSS. It crashes at the same location as the demo.

Is there a temporary fix I can apply until this is fixed?

BTW - CAAT is amazing! I prefer canvas anyhow, but definitely wanted to test the CSS option.

stringa commented 11 years ago

I would grab the .css file from the sumon game (css version). Nothing against CAAT, it's a great engine, but I chose LimeJS. There are many pro's and con's to both engines.

stringa commented 11 years ago

The CSS options is really good if you wanna run Selenium/WebDriver against your game.

hyperandroid commented 11 years ago

Fixed. LimeJS is great. Good choice.