A Basic game based on vanilla JavaScript. consist of two progress bars or health bars so to say one of monster’s and one of player’s. The health bars limit can be specified by the player at the start of the game as a prompt pops up in which the player can specify the health of both the characters i.e the player itself and the monster both will have the same health as specified. The player has extra health and can only be used one time the entire game. You have no control over using it and executes itself just before the player is about to die.
The player can ATTACK, STRONG ATTACK and HEAL.
By clicking on ATTACK the player attacks the monster and the monster attacks back at the player but the attack of monster will be bit powerful then the player's attack and hence both of their health will decrease.
By clicking on STRONG ATTACK both of their health will decrease but the health will decrease a bit more than the normal attack.
By clicking on HEALplayer can recover its health by some defined percent. If the health is more than the defined percentage it won’t heal and you'll get an alert.
And by clicking on SHOW LOG some details on console prints regarding your current game.
Great work.Keep going!!!
ReplyDelete