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

17th Nov 2019, 1:23 PM
Кенжебаев Талап
Кенжебаев Талап - avatar
2 ответов
+ 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.
17th Nov 2019, 3:36 PM
Gordon
Gordon - avatar
0
I have Html code man
17th Nov 2019, 5:11 PM
Кенжебаев Талап
Кенжебаев Талап - avatar