This code contains the game Starship designed for the STM32F429i-DISC1 board. It requires a keyboard to play.

Dependencies:   Starship LCD_DISCO_F429ZI USBHost mbed

Dependents:   Starship

Revision:
1:527a11035e0b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PowerUp.h	Fri Nov 17 02:23:33 2017 +0000
@@ -0,0 +1,42 @@
+#ifndef __POWER_UP
+#define __POWER_UP
+#include "Constants.h"
+#include <stdint.h>
+enum PowerUpType
+{
+    PU_RapidFire,
+    PU_PowerShot,
+    PU_FreezeEnemies,
+    PU_WideShot,
+    PU_Explosion,
+    PU_BonusHealth,
+    PU_Shield
+    
+};
+
+struct PowerUp
+{
+    struct PowerUp * prev;
+    struct PowerUp * next;
+    int16_t x_pos;
+    int16_t y_pos;
+    enum PowerUpType type;
+    int expirationTimer;
+};
+
+extern struct PowerUp * powerUpPTR;
+extern int16_t powerUpCount;
+
+//User interface functions.
+void addPowerUp(int16_t x_pos, int16_t y_pos);
+void removePowerUp(struct PowerUp * powerUp);
+void clearPowerUps();
+void callMultiFuncPowerUp();
+
+//Functions user does not need to worry about.
+enum PowerUpType getRandomType();//-------------------------------------NEEDS RANDOM!!!
+void updatePowerUpTimer(struct PowerUp * powerUP);
+void updatePowerUpTimer_All();
+void removePowerUpIfExpired(struct PowerUp * powerUp);
+void removePowerUpIfExpired_All();
+#endif
\ No newline at end of file