Created
March 22, 2013 03:09
-
-
Save AlphaGit/5218647 to your computer and use it in GitHub Desktop.
Arkanoid Stage
Taken from https://github.com/AlphaGit/random-javascript/commit/90e6540100631e1a3ae590c3bde4a21b74f7abd9
This file contains hidden or 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
// ArkanoidStage | |
+function ArkanoidStage(drawingContext, height, width) { | |
+ this.blockWidth = width / 10; | |
+ this.blockHeight = height / 50; | |
+ this.ballRadius = this.blockHeight * 0.8; | |
+ | |
+ var player = new ArkanoidPlayer(drawingContext, "#000", this.blockHeight, this.blockWidth, width, height); | |
+ player.draw(); | |
+ | |
+ return { | |
+ | |
+ }; | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment