-
Notifications
You must be signed in to change notification settings - Fork 0
/
startgame scripts.txt
36 lines (27 loc) · 1.01 KB
/
startgame scripts.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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();
}