From 5529c72570323d88366d8119f353ba60131a3eb2 Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Fri, 27 Dec 2024 00:02:28 +0100 Subject: [PATCH] implement special attack --- 04 - monster slayer game/prj-monster-01-starting-setup/index.html | 14 +++++--------- 1 files changed, 5 insertions(+), 9 deletions(-) diff --git a/04 - monster slayer game/prj-monster-01-starting-setup/index.html b/04 - monster slayer game/prj-monster-01-starting-setup/index.html index 5532162..4233b72 100644 --- a/04 - monster slayer game/prj-monster-01-starting-setup/index.html +++ b/04 - monster slayer game/prj-monster-01-starting-setup/index.html @@ -20,24 +20,20 @@ <section id="monster" class="container"> <h2>Monster Health</h2> <div class="healthbar"> - <div - class="healthbar__value" - :style="monsterBarStyle" - ></div> + <div class="healthbar__value" :style="monsterBarStyle"></div> </div> </section> <section id="player" class="container"> <h2>Your Health</h2> <div class="healthbar"> - <div - class="healthbar__value" - :style="playerBarStyle" - ></div> + <div class="healthbar__value" :style="playerBarStyle"></div> </div> </section> <section id="controls"> <button @click="attackMonster">ATTACK</button> - <button>SPECIAL ATTACK</button> + <button @click="specialAttackMonster" :disabled="mayUseSpecialAttack"> + SPECIAL ATTACK + </button> <button>HEAL</button> <button>SURRENDER</button> </section> -- Gitblit v1.8.0