1 Team Member
Team member names: Selina
My project aims to replicate but simplify the already poipular game Doodle Jump. The player will be a square jumping on rectangles.
class Player: """ Represents the player-controlled character in the game. """
def __init__(self, x, y, img_file):
"""
Initializes the player object.
Args:
- x : int - starting x coordinate
- y : int - starting y coordinate
- img_file : str - path to img file
"""
class Platform: """ Represents the platforms in the game that the player must hop on to survive. """
def __init__(self, x, y, img_file):
"""
Initializes the obstacle object.
Args:
- x : int - starting x coordinate
- y : int - starting y coordinate
- img_file : str - path to img file
"""
def update_position(self, x, y):
"""
Updates the position of the obstacle.
Args:
- x : int - new x coordinate
- y : int - new y coordinate
Returns:
None
"""
def detect_collision(self):
"""
Detects collision with the pigeon.
Args:
None
Returns:
None
"""
- Click to start tab
- Moveable character
- Obsticle collison
- Moving background
- Game over screen
- Player class: Represents the player character in the game.
- Platform class: Represents the platforms that the player can jump on in the game.
Test Case 1: Player Movement
Test Description: Confirm that the player track the user's mouse and move from side to side.
Test Steps:
- Start the game.
- Observe the character's inital position and the movement of the platoform.
- Move the mouse to the right.
- Verify that the player moves to the right.
- Move the mouse to the leeft.
- Verify that the player moves to the left. Expected Outcome: The character successfully tracks the mouse and moves right if the mouse moves right and moves left if the mouse moves left.
Test Case 2: Score Increment
Test Description: Ensure that the player's score increases correctly upon successful jump.
Test Steps:
- Start the game.
- Observe the inital score, which should start at 0.
- Successful jump on the platform.
- Verify that the score increases by 1.
- Repeat the process of jumping on platforms multiple times. Expected Outcome: The score increases by 1 with each successful jump.
Test Case 3: Game Over Detection
Test Description: Verify that the game correctly detects when the player fails to jump in time and falls off the screen.
Test Steps:
- Start the game.
- Observe the character movement.
- Fail to jump in time and falls of the screen.
- Verify that the game displays a "Game Over" message. Expected Outcome: When the character falls off the scsreen, a game over message is displayed.
Test Case 4: Collison Detection
Test Description: Ensure that collisions between the player and the platform are detected correctly.
Test Steps:
- Start the game.
- Continue playing the game.
- Verify as the player aquires more points increase the sped of the taxis. Expected Outcome: As the game progresses, the taxis would move faster. This requires the player to have quicker reflexes to avoid collisions.
Test Case 5: Menu Navigation
Test Description: Test the navigation through the game over page.
Test Steps:
- Start the game
- Fall off the screen to display the game over message
- Verify that each option (Play again, quit) is selectable and leads to the expected actions. Press "Play Again"
- Takes you back to the initial screen to play the game again.
- Fall off the screen
- Press quit
- The game will exit Expected Outcome: The menu should allow the player to navigate through options and select them. If the player chooses to play again, they will be taken back to the starting screen. If the player chooses to quit, the screen wil close.