epfl-cs358 / 2024sp-robopong

2 stars 0 forks source link

wire new buttons, connect to screen, user input game flow #29

Closed jonathanshu87 closed 4 months ago

jonathanshu87 commented 5 months ago

COM-->GND NC-->digital pin

Image

jonathanshu87 commented 5 months ago

Soldered four wires to share connection to avoid running out of GND pins, will likely have to do the same for the 5V connections

jonathanshu87 commented 5 months ago

Planned game flow:

Since the buttons light up, maybe use LEDs as indications of which buttons to press, flash when a player wins, etc.

jonathanshu87 commented 4 months ago

Game flow: We will have button labels (next/enter or something similar) engraved on the box, so LED flashes will be used to emphasize actions or status updates for each player

  1. Player toggles with one button (next) through game modes
  2. Player selects with second button (enter)
  3. If "automated" selected, skips directly to game countdown. If "single player" selected, the player one button lights up and the player must press to indicate they are ready. If "two player" selected, the player one button lights up and must be pressed, then the player two button lights up and must be pressed.
  4. Game countdown (with LED flashes) and begins
  5. When a point is scored, the corresponding button for the scoring player flashes
  6. Display a win screen and flash the button corresponding to the winning player, players press second button (enter) to go back to game mode selection.