Canvas-engine and Fancybox

So the problem is easy. I want canvas-engine in the fancybox. So when I click on some fancybox item it loads some file in it. I that file I have added canvas-engine and script file where I write my scenes and the game. But I cant get it working it does not initialize the <canvas> tag.

This how I do that:

var canvas = CE.defines("game").extend(Hit).extend(Animation).ready(function() {
canvas.Scene.call("MyScene");
});

And it does not apper when I open fancybox, the is no error in console too.
Please help 🙂


Source: html5

Leave a Reply