Pea Shooter is a simple shooting game where players use their mouse to aim and shoot at birds flying across the screen. The goal is to score as many points as possible within a 30-second time limit.
- Crosshair Control: Move the crosshair using your mouse.
- Shooting Mechanics: Left-click to shoot at the birds.
- Score Tracking: Score points by hitting birds.
- Time Limit: You have 30 seconds to score as many points as possible.
- Pause Functionality: Press the space bar to pause or resume the game.
To run this game locally, you will need:
- A modern web browser
- A local server for serving static files (e.g., Live Server for VSCode)
-
Clone the repository:
git clone https://github.com/yourusername/pea-shooter.git
-
Navigate to the project directory:
cd pea-shooter
-
Serve the game using your preferred local server.
Open your web browser and navigate to http://localhost:5500
(or the URL provided by your local server). The game should load, and you can start playing by clicking the "Play!" button on the main menu.
- Objective: Shoot down as many birds as possible within 30 seconds.
- Controls:
- Move the crosshair with your mouse.
- Left-click to shoot.
- Press the space bar to pause or resume the game.
- Phaser 3: A popular game development framework.
- HTML5: For structuring the web page.
- CSS3: For styling the user interface.
- JavaScript (ES6+): For game logic and interactivity.
This project is licensed under the MIT License. See the LICENSE file for more details.