cbcerquiaga / YouMeAndTheEndOfTheWorld

A 2 player RPG set in a post-asteroid Earth and created with the Godot engine
MIT License
13 stars 4 forks source link

Check key presses and timing in music minigame scene #186

Closed cbcerquiaga closed 5 years ago

cbcerquiaga commented 5 years ago

When a key is pressed, we need to first check if that was a player 1 ket (up, down, left, right) or a player 2 key (WSAD). From there, we need to see if that was the correct key for the "next" musicKey floating down the screen. If it wasn't, we can just count that as an error immediately. If it was, then we need to check which of the timing areas the musicKey is colliding with and assign score accordingly.