Skip to content

Instantly share code, notes, and snippets.

@writingdeveloper
Created November 20, 2017 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save writingdeveloper/680704a1dbe716970c4b20d6ac43b295 to your computer and use it in GitHub Desktop.
Save writingdeveloper/680704a1dbe716970c4b20d6ac43b295 to your computer and use it in GitHub Desktop.
// 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