Skip to content

Ciderlyy/gaem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML Fighting Game

Welcome to the HTML Fighting Game, a simple game built with HTML, CSS, and JavaScript.

Overview

The game consists of two fighters: a player and an enemy. The player can attack and defend while the enemy can only attack. The goal is to defeat the enemy before your health runs out.

How to Play

  1. Clone the repository to your local machine
  2. Open index.html in your browser
  3. Choose your fighter and click "Start Game"
  4. Use the buttons to attack and defend
  5. Watch the enemy's health bar and defend when necessary
  6. Keep attacking until the enemy's health bar reaches zero

Game Mechanics

  • The player starts with 100 health and the enemy starts with 200 health
  • Each attack will cause a random amount of damage between 5 and 20
  • The enemy will always attack for a random amount of damage between 10 and 25
  • Defending will reduce the damage taken by 50%
  • The game ends when either the player or enemy's health reaches zero
  • The game can be restarted by clicking the "Restart" button

Credits

This game was built with the help of the following resources:

License

This project is licensed under the MIT License - see the LICENCE file for details.

About

Cursed HTML game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published