Zombie Hunter is a JS game in which the player controls a zombie hunter. The goal of the game is to avoid collisions with zombies and eliminate them by shooting. The game features different types of enemies, as well as a lives and score system.
Gameplay:
- The player controls the character using the "Up" and "Down" arrow keys.
- The "Space" key is used for attacking (shooting at zombies).
- The screen features regular zombies and flying zombies (zombie birds).
- Zombies move from left to right at different speeds.
Game Logic:
- The player loses lives when colliding with zombies.
- If all lives are lost, the game ends.
- The player earns points for hitting zombies with their weapon.
Music & Sounds:
- The game has background music that plays during gameplay.
- There are separate sound effects for zombie hits, gunshots, and deaths.
- The menu allows the player to toggle music on/off.
On-Screen Elements:
- Main menu with a logo, instructions, and buttons ("Start Game", "Play Music").
- The game field where the gameplay takes place.
- Progress panel displaying the current score and remaining lives.
- Game over screen with a "Game Over" message and a "Restart Game" button.
Weapons & Attacks:
- The player can shoot at enemies.
- When a zombie is hit, it disappears, and the player gains +1 point.
- If a projectile moves off-screen, it gets removed.
- Boss zombies with unique attack patterns.
- Limited ammo, requiring players to collect ammo packs.
- A level-up system that increases difficulty gradually.
- Achievements and leaderboards to track high scores.
- HTML
- CSS
- JavaScript
- DOM Manipulation
- JS Classes
- JS Audio() and JS Image()
- Start Screen
- Game Screen
- Game Over Screen