-
Notifications
You must be signed in to change notification settings - Fork 117
Switching between Canvas and CSS #44
Comments
Hi neeraj, I can infer little from your description. I think you're not initializing properly the director element. Are you doing it like this : director= new CAAT.Director().initialize(700,500,document.getElementById('game')).setClear( false ); About performance on mobile, you could try executing on canvas with calling the following code: Let me know how it goes for you. -ibon |
Hi IBon, Thanks for your quick response. I am using the standard template.js My canvascontainer is a div in HTML. The exact issue I am facing on mobile devices is that when the orientation Thanks, On Fri, Feb 24, 2012 at 6:07 PM, hyperandroid <
|
Thanks neeraj. Will make a use case for this issue. director.enableResizeEvents(CAAT.Director.prototype.RESIZE_PROPORTIONAL); or any of the other RESIZE_XXX flags. Let me know if this works for you. Regards, El 24 de febrero de 2012 14:08, neeraj-anka <
|
Have taken a look at the template code, and have modified them to run with CSS as well. |
Pushed new templates and some fixes. -ibon |
Hey thanks a lot Ibon. I will try with the new code and let you know. Neeraj. On Tue, Feb 28, 2012 at 3:46 AM, hyperandroid <
|
Hi,
I had created a game using the caat.js library however I am facing some issues when rendering it on safari on iOS. So I thought of using the caat-css.js library but I am not able to get the code running. When I change the library to caat-css I am getting and error on line 5792 that this.domElement is undefined. The line number 5792 appears in the function:
style : function(attr,value) {
this.domElement.style[attr]= value;
},
Can you please help.
Thanks,
Neeraj
The text was updated successfully, but these errors were encountered: