https://abhinavmadke2008.itch.io/twin-shield
A fast-paced 2-player retro defense game built using HTML, CSS, and JavaScript (Canvas API) with neon CRT effects, XP upgrades, shields, and audio support.
You can play it on this link: https://abhinavmadke2008.itch.io/twin-shield
-
Two Players
- Player 1:
[A][D]to move,[W]to shoot - Player 2:
[←][→]to move,[↑]to shoot
- Player 1:
-
Gameplay Mechanics
- Enemies spawn faster over time.
- Collect XP to level up.
- Upgrade to a shield by sacrificing Player 2.
- Shield absorbs damage but has limited health & time.ime.
- Restore Player 2 when shield expires or breaks.
-
Retro Styling
- CRT scanlines & glow effects.cts.
- Neon-styled UI with XP bars, hearts, and shield health.
- Glowing feedback messages (e.g., “🛡️ SHIELD ACTIVATED!”).
-
Audio System
- Background looped audio (
assets/audio.wav). - Toggle sound with
[M].
- Background looped audio (
-
Game States
- Upgrade modal after 20 seconds.
- Sacrifice dialog for Player 2.
- Game over screen with
[R]restart option.
-
Player 1:
A/D→ Move left/rightW→ Shoot
-
Player 2:
←/→→ Move left/right↑→ Shoot
-
Other Keys:
M→ Toggle audioR→ Restart game
Retro-Defense-Game/
│── index.html # Main game file (HTML, CSS, JS in one file)
│── assets/
│ └── audio.wav # Background soundtrack
│── README.md # Project documentation
ion
-
Clone or download this repository:
git clone https://github.com/yourusername/retro-defense-game.git cd retro-defense-game -
Open
index.htmlin your browser.- Works best on Chrome / Edge / Firefox.
- Make sure
assets/audio.wavis present for background music.
-
Play with a friend and defend against enemies! ⚡
(Add screenshots/GIFs of gameplay here if possible)
This project is open-source under the MIT License. Feel free to fork, modify, and share!!
💡 Tip: Try surviving long enough to see the sacrifice & shield mechanics in action!ion! ⚡