I’m trying to implement simon using react: https://github.com/nikrb/simon
The game seems to work as it is, but if I centre the game vertically (with height: 100% in html, body css) the hit testing fails. I’m using images and using image data pixel data to check to button hit here
Any general comments on bad practice also appreciated. I intend to factor out some of the code in app.js into a game component, but kinda got distracted by the centreing issue.
thanx for your time