Varibles and Constants - shaunclapperton/L3Programming GitHub Wiki
-
var gameRun = true;
-
var highScore = false;
-
var xPos = 0;
-
var score = 0;
-
var realScore= 0;
-
var gameover = false;
-
var pxPos = 0;
-
var pyPos = 0;
-
const PLAYER_WIDTH = 30;
-
const PLAYER_HEIGHT = 40;
-
var Xspeed = 0;
-
var Yspeed = 0;
-
const SPACE_KEY = 32;
-
var spaceKeyPressed = false;
-
var pipes = [];
-
var pipesTotal = 18;
-
var pipeCount = 0;
-
var pipePearsCount = 0;
-
var yRand = 0;
-
var settingUp = true;
-
var pipePairCount = 0;
-
var Gap = 100;
-
var yVelocity = -2;
-
var diff = '';
-
var bird = new Player(pxPos, pyPos, PLAYER_WIDTH, PLAYER_HEIGHT, "yellow", Xspeed, Yspeed)
-
var playerName = prompt("Please enter your name", "Flappy Bird");