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/Game.h	Fri Nov 17 02:23:33 2017 +0000
@@ -0,0 +1,39 @@
+#ifndef __GAME
+#define __GAME
+#include "Enemy.h"
+#include "Bullet.h"
+#include "Player.h"
+#include "PowerUp.h"
+#include "RandomVar.h"
+#include <math.h>
+extern int16_t level;
+extern int16_t levelScore;
+extern int16_t totalScore;
+extern int16_t lives;
+extern int8_t  X_DIR;
+extern int8_t  Y_DIR;
+extern int8_t didUserRequestFire;
+
+void newGame();
+void newLevel();
+int8_t shouldAddEnemy();
+void addRandomEnemy();
+void addWideShotBullets();
+void callMultiFunc();
+int8_t didBulletHitEnemy(struct Enemy * enemy, struct Bullet * bullet);
+void checkIfBulletsHitEnemies();
+void enemiesFireBullet();
+void firePlayerBullet();
+void usePowerUpAbility();
+void generateExplosion();
+int8_t didPlayerHitPowerUp(struct PowerUp * powerUp);
+int8_t didBulletHitPlayer(struct Bullet * bullet);
+int8_t didPlayerCollideWithEnemy(struct Enemy * enemy);
+void collideBulletsWithPlayer();
+void collideWithEnemies();
+void pickUpPowerUps();
+void loopIteration();
+char didLoseLife();
+char isGameOver();
+char didLevelUp();
+#endif
\ No newline at end of file