abidurrahman11 / Pygame-Racing-Car

Pygame Racing Car is a beginner-friendly open source project on GitHub aimed at improving the Pygame-based racing car game. This repository welcomes contributions from anyone interested in enhancing the game's features and functionality.
MIT License
17 stars 22 forks source link

reduce the interval between level-ups and increase the score increment speed. #44

Open KoreAustralian opened 8 hours ago

KoreAustralian commented 8 hours ago

Issue code section:

        # if score is greater than 5000 then move
        # to a new level and increase the speed of enemy car
        if self.score % 5000 == 0:
            self.speed += 0.16
            self.level += 1
            print("Level Up!")

        self.car2_loc[1] += (
            self.speed * self.speed_factor
        )

A score of 5000 is too high, and players might feel bored while playing the game. I want to address this issue by lowering it from 5000 to 1500.

Additionally, as the score increases, the speed of the enemy car increases, but the score increments remain the same. I want to make the score increase rate proportional to the increasing speed of the enemy car.

Work Plan

Objectives:

Fix the parts where players may feel bored, making the game more engaging for them.

Scope:

This update will reduce the interval between level-ups and increase the score increment speed in proportion to the level.

Project Timeline:

2 weeks.

Implementation:

To implement these changes, I will lower the score threshold for leveling up and add a function that increases the score increment speed when the level increases.

Testing:

1. Test the updated level-up threshold to ensure players progress at 1500 points and verify that enemy speed and score increment rates scale correctly with each level. 2. Ensure the gameplay feels balanced and engaging, with no bugs affecting score or level progression.
KoreAustralian commented 8 hours ago

Hi, please let me know if this issue is acceptable :)