What is the Best Practice in EaselJS for Ticker

Viewed 6716

Currently the problem I'm running into is, when I'm running locally (in a ubuntuVM), using WebStorm as a webserver, I run my game and it plays fine and its responsive, but when I uploaded it to my webhosting and play it from there it is laggy and the click events aren't responsive.

I think it is because I'm using Ticker incorrectly (How do you call update for stages?):

canvas = document.getElementById('myCanvas');
canvas = new createjs.Stage(canvas);
createjs.Ticker.addEventListener("tick", canvas);

and all containers, sprites, etc are children of this stage

http://thegamingproject.org/webgames/ludumdare28/ <- lagginess

1 Answers
Related