-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing class, when hero is active, added styles, edited some js files
- Loading branch information
Showing
5 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function Displayer() { | ||
|
||
widthForBar = currentHP / bosses[currentLevel].hp * 100; //bar for displaying hp of boss | ||
document.getElementById('currentLevelText').innerHTML = "Obecny poziom to " + currentLevel; //change display of level | ||
document.getElementById('currentMoneyText').innerHTML = "Stan konta : " + money; //change display of money | ||
document.getElementById('monsterText').innerHTML = bosses[currentLevel].name + " | type: " + bosses[currentLevel].type; //Change display of boss | ||
document.getElementById('healthText').innerHTML = currentHP + "/" + bosses[currentLevel].hp; //change display of currentHP | ||
document.getElementById('clickDamageText').innerHTML = "Pojedyncze udrzenie zabiera " + clickDamage + " HP"; | ||
document.getElementById('criticalHitChanceText').innerHTML = "Masz " + criticalHitChance + "% szans na udrzenie krytyczne"; | ||
document.getElementById('criticalHitMultiplierText').innerHTML = "Uderzenie krytyczne zabiera " + valueOfCriticalHit + "x więcej obrażeń"; | ||
document.getElementById('idleDamageText').innerHTML = "Twoi wojowie zabierają " + idleDamage + " HP na sekundę"; | ||
document.getElementById('healthText').style.width = widthForBar + '%'; //change bar width | ||
} | ||
|
||
|
||
|
||
function Idle() { | ||
setInterval(IdleClick, 1000); | ||
setInterval(Displayer, 100); | ||
} | ||
|
||
Idle(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters