Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed Gamepad2 ELEC2645_Project_el18rg
Dependents: ELEC2645_Project_el18rg
Diff: Collision/Collision.h
- Revision:
- 2:b936aa854de2
- Child:
- 3:2f4a7787beb3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Collision/Collision.h Wed May 27 01:35:20 2020 +0000
@@ -0,0 +1,26 @@
+#ifndef COLLISION_H
+#define COLLISION_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+class Collision {
+
+public:
+
+ /** Constructor */
+ Collision();
+
+ /** Destructor */
+ ~Collision();
+
+ /** Checks if the pixel below the arrow has hit another activated pixel
+ * @return Return true if a activatd pixel is detected, false if not
+ */
+ bool bottom(N5110 &lcd, int x, int y);
+
+};
+
+#endif
+
\ No newline at end of file