DhanushNehru / breakout-game

A simple breakout game
https://breakout-game-dhanushnehru.netlify.app/
MIT License
8 stars 25 forks source link

Add block lives #35

Closed dani0105 closed 2 years ago

dani0105 commented 2 years ago

from issue #32

netlify[bot] commented 2 years ago

Deploy Preview for breakout-game-dhanushnehru ready!

Name Link
Latest commit 207e1113832e26be0b886b660009b7798330df93
Latest deploy log https://app.netlify.com/sites/breakout-game-dhanushnehru/deploys/6341994b49ffe40008cbd384
Deploy Preview https://deploy-preview-35--breakout-game-dhanushnehru.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

DhanushNehru commented 2 years ago

Seems sometimes the blocks have lives and sometimes even the blocks with 5 lives are cleared on first hit

you can check it for yourself https://deploy-preview-35--breakout-game-dhanushnehru.netlify.app/

dani0105 commented 2 years ago

Yes, I saw it. I think it's a problem with the collision system that counts multiple hits. Before it was not appreciated because the blocks were destroyed at the moment. I don't know if I solve it in this pull request or if there will be a new issue to solve the problem in another pull request.

DhanushNehru commented 2 years ago

Still the same @dani0105

dani0105 commented 2 years ago

try it now

DhanushNehru commented 2 years ago

Actually in mobile view the slider is occupying the entire screen @dani0105

dani0105 commented 2 years ago

sorry i forgot to change the width of the slider. I put full width to test. i will fix that and upload again