jaldpsd

Game (New)

Feb 25th, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. Prompt:
  2. Create a two-player reaction time game where players compete to see who has the fastest reflexes. The game should follow these specific rules:
  3.  
  4. Design a clean, professional interface with a playing field divided by a vertical line in the middle. The left side should be red-tinted for Player 1, and the right side should be blue-tinted for Player 2. The dividing line starts at the 50% mark.
  5.  
  6. Gameplay mechanics:
  7.  
  8. - The game should start when the spacebar is pressed
  9.  
  10. - Each round starts with Players waiting during a "Get Ready" phase lasting between 0.5-1.5 seconds
  11.  
  12. - After the random wait time, two letters/numbers appear simultaneously - one in red for Player 1 and one in blue for Player 2
  13.  
  14. - Player 1 is assigned keys from the left side of the keyboard (1-4, Q-R, A-F, Z-V)
  15.  
  16. - Player 2 is assigned keys from the right side (7-0, U-P, H-L, B-M)
  17.  
  18. - The V key is shared between players and can be assigned to either player in any round
  19.  
  20. - The first player to press their correct key wins the round and gains 10% territory (the dividing line moves away from them)
  21.  
  22. - If a player presses any wrong key from their side, they receive a 2.5% territory penalty (line moves toward them) but the round continues
  23.  
  24. - All line movements are cumulative - penalties affect the final position when correct keys are eventually pressed
  25.  
  26. - The game continues round after round until one player controls the entire field (line reaches 0% or 100%)
  27.  
  28. - When the game ends, display a "Game Over" screen showing the winner and final score
  29.  
  30. - After the Game Over screen, Press spacebar to start a new game
  31.  
  32. Interface requirements:
  33.  
  34. - Display the current score for both players
  35.  
  36. - Show the round number
  37.  
  38. - Record and display each player's reaction time in milliseconds
  39.  
  40. - Include a visual representation of the keyboard layout showing which player controls which keys
  41.  
  42. - Show a brief message when players receive a wrong key penalty
  43.  
  44. - Animate the dividing line movement smoothly, colors move with the line so players with more or less territory have more or less of their color
  45.  
  46. - Include a clear "Game Over" screen when one player wins
  47.  
  48. The game should provide immediate feedback on keystrokes, have smooth animations for the dividing line, and maintain a sleek, modern aesthetic throughout. Make all text and UI elements easily readable and ensure the game state (waiting, active, results, game over) is always clear to both players.
  49.  
  50. A new rounds starts after the correct key is pressed or after nobody presses the correct key in 4 seconds
Advertisement
Add Comment
Please, Sign In to add comment