Skip to content

Instantly share code, notes, and snippets.

@7gano
Created August 19, 2013 14:33
Show Gist options
  • Save 7gano/6269810 to your computer and use it in GitHub Desktop.
Save 7gano/6269810 to your computer and use it in GitHub Desktop.
var f = function(){
var core = new Core(320,
320
);
core.onload = function(){
var sprite = new Sprite(32, 32);
sprite.x = 100;
sprite.y = 100;
sprite.backgroundColor = 'blue';
sprite.tl.moveTo(768 * 0.5 - 32,
1024 * 0.5 - 32,
5 * core.fps);
core.rootScene.addChild(sprite);
};
core.start();
return 1 + 1;
};
var code = f.toString();
code = '(' + code + ')();///////';
console.log(code);
res.write(code);
res.end();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment