energyBar.scaleX = currentEnergy / totalEnergy; // if (currentEnergy == 0) gameOver("This is the end, my only friend, the end...");