Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: spase_ship/space_ship.cpp
- Revision:
- 92:8a1b14488ca5
- Parent:
- 91:f9e2ff484014
diff -r f9e2ff484014 -r 8a1b14488ca5 spase_ship/space_ship.cpp --- a/spase_ship/space_ship.cpp Sun Apr 28 19:44:34 2019 +0000 +++ b/spase_ship/space_ship.cpp Sun May 05 01:27:55 2019 +0000 @@ -37,31 +37,6 @@ _score = 0; // start score from zero - if (_d2==N) { - y=y-2; - } - - else if (_d2==E) { - bullet_fired=1; - x_bullet=11; - y_bullet=y; - } - - if (y>=40) { - y=40; - } - - else if(y<=0) { - y =0; - } - - if(bullet_fired==1) { - x_bullet+=4; - } - - if(x_bullet>=x_Alien && y_bullet >=y_Alien && y_bullet <=y_Alien+10) { - y=0; - } }