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: PokittoLib
Fork of Asterocks by
Revision 8:48415ef66fdd, committed 2017-10-18
- Comitter:
- Pokitto
- Date:
- Wed Oct 18 18:11:34 2017 +0000
- Parent:
- 7:574e375f2180
- Parent:
- 6:22d706e5dd6e
- Child:
- 9:710d52b4e452
- Commit message:
- Sound fixed
Changed in this revision
--- a/ageddon.cpp Wed Oct 18 18:10:03 2017 +0000
+++ b/ageddon.cpp Wed Oct 18 18:11:34 2017 +0000
@@ -291,6 +291,7 @@
}
void drawAmmo(){
+ gb.display.setColor(2);
for( uint8_t i = 0; i < 2; i++ ){
uint8_t xcoord = i == 0 ? 25 : 55;
uint8_t ycoord = 47;
@@ -306,6 +307,7 @@
}
}
}
+ gb.display.setColor(1);
}
void drawMissiles(){
@@ -529,10 +531,10 @@
void stepGame(){
//Player input
if( gb.buttons.pressed(BTN_A) ){
- launchMissile(LAUNCHER_ONE);
+ launchMissile(LAUNCHER_TWO);
}
if( gb.buttons.pressed(BTN_B) ){
- launchMissile(LAUNCHER_TWO);
+ launchMissile(LAUNCHER_ONE);
}
if( gb.buttons.repeat(BTN_LEFT,1) ){
