New pokittolib with improved volume controls & better button handling

Dependencies:   PokittoLib

Fork of Arcade by Pokitto Community Team

Revision:
22:25d0247917fc
Parent:
6:7e55f4fd3e4e
--- a/main.cpp	Wed May 02 06:27:05 2018 +0000
+++ b/main.cpp	Sun Oct 07 10:36:20 2018 +0000
@@ -8,13 +8,13 @@
 Pokitto::Core game;
 
 //include textures
-#include <textures.h>
+#include <../textures.h>
 
 //variable declarations
 short gameMode = -2; //-2 = title, -1 = settings, 0 = menu, 1 = pong, 2 = breakout, 3 = snake, 4 = stacker, 5 = columns
-unsigned int paddleA = 36;
-unsigned int paddleB = 36;
-unsigned int paddleBr = 46;
+int paddleA = 36;
+int paddleB = 36;
+int paddleBr = 46;
 int paddleBMotion = 0;
 int ballX = 52;
 int ballY = 42;
@@ -297,7 +297,7 @@
         ballSpeed = 1.25f;
         if (bsound) game.sound.playOK();
     } else if (ballSpeed <= 1.25f && bricksHit == 12) {
-        ballSpeed == 1.5f;
+        ballSpeed = 1.5f;
         if (bsound) game.sound.playOK();
     }
 }
@@ -477,7 +477,7 @@
             headX = 13;
             headY = 10;
             snakeInitializing = true;
-            snakeGridInit;
+            snakeGridInit();
             if (bsound) game.sound.playCancel();
         }
     } else {