Skip to content

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.

License

Notifications You must be signed in to change notification settings

ankitwarbhe/Basketcatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basketcatcher

Capt

Overview

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.

Features

  • 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.

Technologies Used

  • 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.

Game Structure

HTML (index.html)

The main HTML file sets up the game structure, including the game container, scoreboard, and various screens (start, game over).

CSS (styles.css)

The CSS file styles the game elements, including the layout, buttons, and animations. It ensures a visually appealing interface.

JavaScript (game.js)

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

How to Play

  1. Open the index.html file in a web browser.
  2. Click the "Start Game" button to begin.
  3. Use the left and right arrow keys to move the basket and catch falling fruits.
  4. Avoid catching bombs to prevent game over.
  5. Try to achieve the highest score possible!

Installation

To run the game locally:

  1. Clone the repository.
  2. Open index.html in your preferred web browser.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.

Acknowledgments

  • Inspired by classic arcade games.
  • Special thanks to the open-source community for resources and libraries.

About

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.

Topics

Resources

License

Stars

Watchers

Forks