New pokittolib with improved volume controls & better button handling

Dependencies:   PokittoLib

Fork of Arcade by Pokitto Community Team

Files at this revision

API Documentation at this revision

Comitter:
Pokitto
Date:
Sun Oct 07 10:36:20 2018 +0000
Parent:
21:3c5e2d050e3a
Commit message:
Removed compilation errors

Changed in this revision

PokittoLib.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 3c5e2d050e3a -r 25d0247917fc PokittoLib.lib
--- a/PokittoLib.lib	Wed May 02 06:27:05 2018 +0000
+++ b/PokittoLib.lib	Sun Oct 07 10:36:20 2018 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/Pokitto/code/PokittoLib/#2b8560b11eab
+https://os.mbed.com/users/Pokitto/code/PokittoLib/#8b6a110feeea
diff -r 3c5e2d050e3a -r 25d0247917fc main.cpp
--- 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 {