Skip to content

Commit

Permalink
renamed index
Browse files Browse the repository at this point in the history
  • Loading branch information
SLFMR1 committed Nov 21, 2024
1 parent 69790fd commit 7fdf1e8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
File renamed without changes.
36 changes: 36 additions & 0 deletions startgame scripts.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
function startGame() {
document.getElementById('start-screen').style.display = 'none';
gameStarted = true;
gameStartTime = Date.now();
timerInterval = setInterval(updateTimer, 1000);

// Set initial level to 80
currentLevel = 80;

// Calculate appropriate logo size for level 80
logoSize = initialLogoSize - ((initialLogoSize - finalLogoSize) * (currentLevel - 1) / 99);

// Set appropriate health for level 80
maxHealth = 100 + (80 - 1) * 10; // Since each level adds 10 health
health = maxHealth;

// Update UI
document.getElementById('current-level').innerText = currentLevel;
document.getElementById('minted-count').innerText = `0/${currentLevel * 10}`;

updateHealthBar();
update();
}




function startGame() {
document.getElementById('start-screen').style.display = 'none';
gameStarted = true;
gameStartTime = Date.now();
timerInterval = setInterval(updateTimer, 1000);
health = 100;
updateHealthBar();
update();
}

0 comments on commit 7fdf1e8

Please sign in to comment.