Created
October 2, 2011 20:52
-
-
Save egonelbre/1257932 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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