diff --git a/README.md b/README.md index 6c7da79..fbdbb68 100644 --- a/README.md +++ b/README.md @@ -1 +1,34 @@ -# My-projects \ No newline at end of file +# Star Wars Lightsaber Battle + +A single-page browser game where you duel an AI opponent with lightsabers in a Star Wars-inspired arena. + +## Play locally + +Open `index.html` in a browser. + +If you want to serve it locally instead of opening the file directly: + +```bash +python3 -m http.server 8000 +``` + +Then visit `http://localhost:8000`. + +## Controls + +- `1` - Quick Strike +- `2` - Heavy Slash +- `3` - Parry Stance +- `4` - Force Surge +- `5` - Saber Throw +- `N` - Start next round after a win +- `R` - Full rematch and reset the scoreboard +- `J` - Switch to the Jedi side +- `S` - Switch to the Sith side + +## Features + +- Choose between Jedi and Sith play styles +- Turn-based saber combat with health and Force meters +- Enemy AI that adapts to your health, guard, and resources +- Animated duel stage, battle log, and running scoreboard \ No newline at end of file diff --git a/index.html b/index.html index cea2202..d4966d3 100644 --- a/index.html +++ b/index.html @@ -1,652 +1,1606 @@ - - Countdown to Superintelligence + Star Wars Lightsaber Battle + + + + +
+
+

A galaxy duel awaits

+
+
+

Star Wars Lightsaber Battle

+

+ Enter a cinematic saber duel, choose the light or dark side, + manage your Force reserves, and outplay a rival in fast turn-based combat. +

+
+
+ Keyboard: 1-5 attack, N next round, R rematch, J choose Jedi, S choose Sith +
+
+
+ + + +
+
+ +
+ + +
+
+
Round 1
+
Score 0 - 0
+
+ +
+
+
Knight Solen
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ Choose your side and strike first. +
+
+
+ +
+
Darth Vexis
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+ + + + + +
+
+ + +
+ +
+
+

How to win the duel

+
+
+ Read the opponent +

Quick Strike is safe, Heavy Slash hits harder, and Parry Stance punishes overaggression.

+
+
+ Manage the Force +

Force Surge restores reserves and empowers your next attack. Save Saber Throw for a finishing window.

+
+
+ Keep the pressure on +

Rounds chain together into a running scoreboard, so keep dueling and stack wins.

+
+
+
+ +
+

Battle log

+
    + +
    +
    +
    + +