From 4674f9473e724ea88f3b78e95f8c8202f0807062 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=A0krab=C3=A1nek?= Date: Wed, 9 Mar 2022 10:53:45 +0100 Subject: [PATCH] Update hra --- hra.html | 16 +++++++++++++++- hra.js | 11 ++++++----- index.html | 2 +- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/hra.html b/hra.html index 9a95989..ff23a7d 100644 --- a/hra.html +++ b/hra.html @@ -28,8 +28,22 @@ -
Historie boje:
+ +
+

+ + Historie boje: + +

+
+ + \ No newline at end of file diff --git a/hra.js b/hra.js index 10ecdb9..105fd0d 100644 --- a/hra.js +++ b/hra.js @@ -19,7 +19,8 @@ function init() { //FUNKCE function heal() { heroHp = parseInt(heroHp) + parseInt(hodkostkou(10)); - battlelog("Výlečil ses
"); + battlelog(`
+ Vyléčil ses
`); document.getElementById("heroHp").innerText = heroHp; enemyAttack(); @@ -28,7 +29,7 @@ function heal() { function attack() { enemyHp = parseInt(enemyHp) - parseInt(heroDamage); - battlelog("Zautočil jsi
"); + battlelog('
Zaútočil jsi
'); document.getElementById("enemyHp").innerText = enemyHp; enemyAttack(); @@ -37,7 +38,7 @@ function attack() { function defend() { heroDefend = true; - battlelog("Použil jsi obranu
"); + battlelog('
Použil jsi obranu!
'); gameover(); } @@ -53,12 +54,12 @@ function luck() { function enemyAttack() { if (!heroDefend) { - battlelog("nepřítel zaútočil
"); + battlelog('
Nepřítel zaútočil
'); heroHp = parseInt(heroHp) - parseInt(enemyDamage); document.getElementById("heroHp").innerText = heroHp; heroDefend = false; } else { - battlelog("vykryl jsi protiútok
"); + battlelog('
Vykril jsi útok
'); heroDefend = false; } diff --git a/index.html b/index.html index f0e3511..ce3d905 100644 --- a/index.html +++ b/index.html @@ -27,7 +27,7 @@
-

OBJEKT 2

+

OBJEKT 2 - Formuláře