ELEC2645 (2018/19) / Mbed 2 deprecated fy14lkaa

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
fy14lkaa
Date:
Sat Apr 20 23:13:09 2019 +0000
Parent:
30:9688950d9f38
Child:
32:25f62a4392d5
Commit message:
creating space_ship folder.

Changed in this revision

SpaceInvadersEngine/SpaceInvadersEngine.h Show annotated file Show diff for this revision Revisions of this file
bullet/bullet.h 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
--- a/SpaceInvadersEngine/SpaceInvadersEngine.h	Sat Apr 20 00:53:42 2019 +0000
+++ b/SpaceInvadersEngine/SpaceInvadersEngine.h	Sat Apr 20 23:13:09 2019 +0000
@@ -4,6 +4,9 @@
 #include "mbed.h"
 #include "N5110.h"
 #include "Gamepad.h"
+#include "Alien.h"
+#include "bullet.h"
+
 
 
 
--- a/bullet/bullet.h	Sat Apr 20 00:53:42 2019 +0000
+++ b/bullet/bullet.h	Sat Apr 20 23:13:09 2019 +0000
@@ -1,3 +1,7 @@
+#ifndef BULLET_H
+#define BULLET_H
+
+
 #include "mbed.h"
 #include "N5110.h"
 #include "Gamepad.h"
--- a/main.cpp	Sat Apr 20 00:53:42 2019 +0000
+++ b/main.cpp	Sat Apr 20 23:13:09 2019 +0000
@@ -24,7 +24,7 @@
 
 
 ////////////// objects ///////////////
-//N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
+N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
 Gamepad pad;
 
 SpaceInvadersEngine space;
@@ -64,7 +64,7 @@
 
 
 
-  const int space_ship[10][12]={
+ const int space_ship[10][12]={
   {0,0,0,0,0,0,0,0,0,0,0,0},
   {0,0,0,1,1,0,0,0,0,0,0,0},
   {0,0,0,1,1,0,0,0,0,0,0,0},