Created
November 20, 2017 07:30
-
-
Save writingdeveloper/680704a1dbe716970c4b20d6ac43b295 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
// Initial setting | |
var allEnemies = []; | |
var player = new Player(202.5, 383, 100); | |
var score = 0; | |
var gameLevel = 1; | |
var scoreLevelDiv = document.createElement('div'); | |
var enemy = new Enemy(0, Math.random() * 184 + 50, Math.random() * 256); | |
var enemy_rock = new Enemy_Rock(0, Math.random() * 184 + 50, Math.random() * 256); | |
allEnemies.push(enemy, enemy_rock); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment