Skip to content

Instantly share code, notes, and snippets.

@egonelbre
Created October 2, 2011 20:52
Show Gist options
  • Save egonelbre/1257932 to your computer and use it in GitHub Desktop.
Save egonelbre/1257932 to your computer and use it in GitHub Desktop.
function CollisionContoller(width, height) {
this.draw = function(){
document.write("drawing\n");
};
};
CollisionContoller.prototype.registerPlanet = function(image, position, type){
this.draw();
}
collisionContoller = new CollisionContoller(480, 320);
collisionContoller.registerPlanet(null, {x:240, y:160}, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment