Skip to content

1st

User Story: As a player, they will be able to control a bunny using a keyboard, the aim is to safely cross the road, avoiding cars and reaching the other side, so that the player can win the game. If a bunny gets hit by a car, they will lose control of the bunny, and the bunny will disappear.

Feature Outline:

  • We will implement a multiplayer mini game where each player controls a bunny using the keyboard. Players must avoid moving cars and cross the road to reach their home.

- Player Movement: Players will use arrow keys to move their bunny across the road. Up-arrow key: Bunny hops vertically up by a specified distance. Left-arrow key: Bunny hops left by a specified distance. Right-arrow key: Bunny hops right by a specified distance. Down-arrow key: Bunny hops backward by a specified distance.

- Obstacles: Cars will move continuously across the road at a constant speed, and players must avoid them.

- Win/Loss Condition: A player wins when their bunny crosses the road and reaches the house. If a player's bunny gets hit by a car, they lose control of the bunny. The other player can continue until they either win or collide with a car. If both players are hit the game will reset.

- Multiplayer Mode: The game will be played with two players. Both bunnies move independently, and if one bunny is hit, the other can still try to win the game.

- Single Level of Difficulty: There will be no varying levels of difficulty; the game remains at the same level throughout.

Tasks: Implement bunny movement functionality using the keyboard arrow keys. Create cars as moving obstacles that continuously traverse the road. Add collision detection between bunnies and cars. Define win/loss logic based on successful crossing or collision with cars. Support multiplayer functionality with both players controlling separate bunnies.