Pokitto Community Team / Armageddon

Dependencies:   PokittoLib

Fork of Asterocks by Pokitto Community Team

Files at this revision

API Documentation at this revision

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) ){