0
Score question
I have a game on the JS code of the flapPY bird and I want when the bird fell, the account was displayed on the window so that there was a restart button https://code.sololearn.com/cm2rhmrz2siB/?ref=app
2 Réponses
+ 2
You should create Web code instead of Java code, LOL.
the condition is yPos + bird.height > cvs.height
your action will be to stop the loop by turning a gameOver flag as true, and putting requestAnimationFrame() in code block when the gameOver flag is false.
0
I have Html code man