Final Submission. I have read and agreed with Statement of Academic Integrity.

Dependencies:   mbed

Revision:
6:65c01b46fc88
Parent:
5:a33d791bd7fb
Child:
7:8e1111ab8a8c
diff -r a33d791bd7fb -r 65c01b46fc88 main.cpp
--- a/main.cpp	Fri Jun 05 12:08:30 2020 +0000
+++ b/main.cpp	Fri Jun 05 12:38:59 2020 +0000
@@ -2,7 +2,7 @@
 #include "mbed.h"
 #include "Gamepad.h"
 #include "N5110.h"
-#include "PortalEngine.h"
+#include "Levels.h"
 
 //Objects
 Gamepad pad;
@@ -350,7 +350,7 @@
 //////////////////code so far has movement, surface and portal detection and relevant behaviours.
 // next steps are to turn pot into degrees and make a function which chechks which pixel the pot is pointing at. 
 
-void portal_angle()
+void get_portal_angle()
 {
     double angle_input = pad.read_pot2();
     float gradient = tan(angle_input*360);
@@ -420,7 +420,6 @@
     
 void place_portal_1()
 {
-        portal_angle();
         int old_p1_xpos = portal_1_xpos;
         int old_p1_ypos = portal_1_ypos;
         array[old_p1_xpos][old_p1_ypos] = '1';