+ 1

Help

Recently, I have made a bomber game and it works perfectly, but I still need some help, what do I do to make the game stop when the bomber is caught in an explosion three times? Please help https://code.sololearn.com/Wa4A24A1447A/#

14th Dec 2020, 8:02 PM
CrazyImagine
CrazyImagine - avatar
3 Answers
0
And what if you define the duration of the explosion and the size of it, if the personage is in the size during the time you have one left in a life. And so on until zero.
14th Dec 2020, 11:11 PM
Daniel Briceño
Daniel Briceño - avatar
0
if (leftPer> = leftBom && leftPer <= leftPer + widthBom && topPer>=topBom && topPer>=top+heightBom && time! = 0) live-=1;
14th Dec 2020, 11:11 PM
Daniel Briceño
Daniel Briceño - avatar
0
And currently how is the game
17th Dec 2020, 10:45 PM
Daniel Briceño
Daniel Briceño - avatar