Basketcatcher is a fun and interactive game where players catch falling objects using a basket. The objective is to collect as many good objects (fruits) as possible while avoiding bad objects (bombs). The game features increasing difficulty levels, a scoreboard, and a visually appealing background.
- Catch Fruits: Players can catch various fruits to score points.
- Avoid Bombs: Players must avoid catching bombs, which will end the game.
- Dynamic Difficulty: The game speed increases as the player progresses through levels.
- Scoreboard: High scores are saved and displayed, allowing players to compete against themselves and others.
- Responsive Design: The game is designed to be played on various screen sizes.
- HTML: Structure of the game interface.
- CSS: Styling for the game elements and layout.
- JavaScript: Game logic, including player movement, object spawning, and collision detection.
The main HTML file sets up the game structure, including the game container, scoreboard, and various screens (start, game over).
The CSS file styles the game elements, including the layout, buttons, and animations. It ensures a visually appealing interface.
The JavaScript file contains the core game logic:
- Player Class: Manages player properties and movement.
- FallingObject Class: Handles the properties and behavior of falling objects.
- Game Class: Controls the game flow, including initialization, updates, drawing, and event handling.
This project is licensed under the MIT License. See the LICENSE file for details.
- Open the
index.html
file in a web browser. - Click the "Start Game" button to begin.
- Use the left and right arrow keys to move the basket and catch falling fruits.
- Avoid catching bombs to prevent game over.
- Try to achieve the highest score possible!
To run the game locally:
- Clone the repository.
- Open
index.html
in your preferred web browser.
Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.
- Inspired by classic arcade games.
- Special thanks to the open-source community for resources and libraries.