Closed FrancisTR closed 1 year ago
This is a fix in general with the hitbox in the white area where red/blue cubes are at. I found this fix while looking at the new hitbox being a bit off, just to realize this has been a bug for a whilewhile (probably). (Edit: Bug doesn't apply to hit boxes. Still it definitely shows with yellow highlight on character incorrectly. Not sure about everywhere else. So undo some code based on misleading yellow highlighted hit box preview.)
This adjusts hit boxes for changed white area. GitHub doesn't let me suggest it so I will paste it here.
Before:
beatColorBoolean = (x2[0] > 540 || x2[0] < 480) && (x2[1] > 540 || x2[1] < 480) && (x2[2] > 540 || x2[2] < 480) && (x2[3] > 540 || x2[3] < 480) && (x2[4] > 540 || x2[4] < 480) && (x2[5] > 540 || x2[5] < 480)
if (pressByBeat === 'red'){
if ((x2[0] > 540 || x2[0] < 480) && (x2[1] > 540 || x2[1] < 480) && (x2[2] > 540 || x2[2] < 480) && (x2[3] > 540 || x2[3] < 480) && (x2[4] > 540 || x2[4] < 480) && (x2[5] > 540 || x2[5] < 480)){ //If you miss the beat
After:
beatColorBoolean = (x2[0] > 540 || x2[0] < 470) && (x2[1] > 540 || x2[1] < 470) && (x2[2] > 540 || x2[2] < 470) && (x2[3] > 540 || x2[3] < 470) && (x2[4] > 540 || x2[4] < 470) && (x2[5] > 540 || x2[5] < 470)
if (pressByBeat === 'red'){
if ((x2[0] > 540 || x2[0] < 470) && (x2[1] > 540 || x2[1] < 470) && (x2[2] > 540 || x2[2] < 470) && (x2[3] > 540 || x2[3] < 470) && (x2[4] > 540 || x2[4] < 470) && (x2[5] > 540 || x2[5] < 470)){ //If you miss the beat
✅ Deploy Preview for projectrhythmswipe ready!
Toggle QR Code...
Use your smartphone camera to open QR code link.
To edit notification comments on pull requests, go to your Netlify site configuration.