{"id":23857609,"url":"https://github.com/sebaskhe/rocket-target-challenge-wwith-pygame","last_synced_at":"2025-08-29T09:22:15.242Z","repository":{"id":269440439,"uuid":"907427229","full_name":"SebasKHE/Rocket-Target-Challenge-wwith-pygame","owner":"SebasKHE","description":"A simple yet challenging 2D game made with Pygame. Control a spaceship, shoot bullets, and hit a moving target. With each hit, the target speeds up, testing your precision and reflexes. Miss, and the game restarts! Perfect for practicing game mechanics and Pygame fundamentals.","archived":false,"fork":false,"pushed_at":"2024-12-23T15:00:46.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T08:52:11.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SebasKHE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-23T14:57:49.000Z","updated_at":"2024-12-23T15:00:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"4368a1aa-277d-4bae-bfaa-018330448cb9","html_url":"https://github.com/SebasKHE/Rocket-Target-Challenge-wwith-pygame","commit_stats":null,"previous_names":["sebaskhe/rocket-target-challenge-wwith-pygame"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SebasKHE/Rocket-Target-Challenge-wwith-pygame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebasKHE%2FRocket-Target-Challenge-wwith-pygame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebasKHE%2FRocket-Target-Challenge-wwith-pygame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebasKHE%2FRocket-Target-Challenge-wwith-pygame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebasKHE%2FRocket-Target-Challenge-wwith-pygame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebasKHE","download_url":"https://codeload.github.com/SebasKHE/Rocket-Target-Challenge-wwith-pygame/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebasKHE%2FRocket-Target-Challenge-wwith-pygame/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272659283,"owners_count":24971607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-03T02:59:21.104Z","updated_at":"2025-08-29T09:22:15.213Z","avatar_url":"https://github.com/SebasKHE.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rocket-Target-Challenge-with-pygame\n \n### Description:  \nIn *Rocket Target Challenge*, you take control of a spaceship on the left side of the screen. Your goal is to shoot and hit a moving rectangle that shifts up and down on the right side. With each successful hit, the rectangle moves faster, increasing the challenge. If you miss and the bullet doesn’t hit the target, the game restarts. It’s a test of precision, control, and reflexes that becomes more difficult with every hit.  \n\n---\n\n### Game Structure:  \n\n#### **1. Gameplay**:\n- **Objective**:  \n  Control the spaceship to fire bullets at the moving rectangle. Each hit increases the rectangle’s speed.  \n\n- **Restart Conditions**:  \n  If a bullet misses the rectangle, the game restarts.  \n\n- **Controls**:  \n  - **Move Up/Down**: Use the arrow keys.  \n  - **Shoot**: Press the space bar to fire bullets from the spaceship.  \n\n---\n\n#### **2. Technical Structure of the Project**:\n\n1. **`settings3.py`**:  \n   - Contains the game’s general settings, such as screen size, colors, initial speeds for the rectangle and spaceship, and bullet speed.  \n\n2. **`rocket3.py`**:  \n   - Defines the spaceship: its initial position, how it moves up and down, and how it fires bullets.  \n\n3. **`bullets3.py`**:  \n   - Manages the bullets fired by the spaceship, including their creation, movement, and collision detection with the moving rectangle.  \n\n4. **`clases.py`**:  \n   - Implements the game’s main classes, such as the moving rectangle and other core logic.  \n\n5. **`funciones3.py`**:  \n   - Contains utility functions such as:\n     - Handling keyboard events.  \n     - Checking for collisions between bullets and the rectangle.  \n     - Restarting the game when a bullet misses.  \n\n6. **`stats.py`**:  \n   - Tracks statistics like the number of successful hits and the rectangle’s current speed.  \n\n7. **`boton.py`** (optional):  \n   - If the game includes buttons (e.g., a main menu or manual restart), this file defines their appearance and functionality.  \n\n8. **`ejecutable3.py`**:  \n   - The main file that runs the game and organizes interactions between the modules.  \n\n---\n\n### Game Flow:  \n\n1. **Start**:  \n   The spaceship starts on the left side of the screen, while the moving rectangle shifts up and down on the right.  \n\n2. **Gameplay**:  \n   - The player controls the spaceship to align it vertically with the rectangle.  \n   - Fires a bullet attempting to hit the moving rectangle.  \n\n3. **Successful Hit**:  \n   - If the bullet hits the rectangle, the rectangle increases its speed, becoming harder to hit.  \n\n4. **Miss**:  \n   - If the bullet misses the rectangle, the game restarts, and the rectangle returns to its initial speed.  \n\n5. **Infinite Progression**:  \n   - The goal is to see how many consecutive hits the player can achieve before missing.  \n\n---\n\n### Ideas for Future Improvements:\n- **Score System**: Display a counter on the screen for consecutive hits.  \n- **Progressive Difficulty**: Also increase the spaceship’s speed or add obstacles as the rectangle speeds up.  \n- **Sound Effects**: Add sounds for shooting, hitting, or missing.  \n- **Lives System**: Give the player 3 lives before fully restarting.  \n\n---\n**Installation Guide**  \n\n1. **Clone the Repository**  \n   Open your terminal and run the following command to clone the repository:  \n   ```bash\n   git clone https://github.com/SebasKHE/Rocket-League-based-2d-game-with-Pygame.git\n   ```\n\n2. **Navigate to the Project Directory**  \n   Move into the project folder:  \n   ```bash\n   cd Rocket-League-based-2d-game-with-Pygame\n   ```\n\n3. **Set Up a Virtual Environment (Optional but Recommended)**  \n   Create and activate a virtual environment to manage dependencies:  \n   ```bash\n   python -m venv venv\n   source venv/bin/activate        # On Linux/Mac\n   venv\\Scripts\\activate          # On Windows\n   ```\n\n4. **Install Dependencies**  \n   Install the required Python packages listed in `requirements.txt`:  \n   ```bash\n   pip install -r requirements.txt\n   ```\n\n   If `requirements.txt` does not exist, manually install Pygame:  \n   ```bash\n   pip install pygame\n   ```\n\n5. **Run the Game**  \n   Execute the main file to start the game. Depending on the project, run the executable script:  \n   ```bash\n   python ejecutable3.py\n   ```\n\n6. **Enjoy the Game!**  \n   Use the spaceship controls to aim, shoot, and hit the moving target.  \n\nIf you encounter any issues, ensure Python and Pygame are correctly installed and that you are using Python 3.7 or higher.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebaskhe%2Frocket-target-challenge-wwith-pygame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebaskhe%2Frocket-target-challenge-wwith-pygame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebaskhe%2Frocket-target-challenge-wwith-pygame/lists"}