Version of Robotron arcade game using LPC1768, a Gameduino shield, a serial EEPROM (for high scores), two microswitch joysticks and two buttons plus a box to put it in. 20 levels of mayhem.

Dependencies:   25LCxxx_SPI CommonTypes Gameduino mbed

Revision:
4:673eb9735d44
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Rectangle.cpp	Sat Jun 08 11:24:05 2013 +0000
@@ -0,0 +1,40 @@
+/*
+ * SOURCE FILE : Rectangle.cpp
+ *
+ * Definition of class Rectangle.
+ * Represents a rectangular area.
+ *
+ */
+
+#include "Rectangle.h"
+
+/***************/
+/* CONSTRUCTOR */
+/***************/
+Rectangle::Rectangle() :
+  X1( 0 ),
+  Y1( 0 ),
+  X2( 9 ),
+  Y2( 9 )
+{
+}
+
+/***************/
+/* CONSTRUCTOR */
+/***************/
+// Pass coordinates of top left in x1 and y1.
+// Pass coordinates of bottom right in x2 and y2.
+Rectangle::Rectangle( Int16 x1, Int16 y1, Int16 x2, Int16 y2 ) :
+  X1( x1 ),
+  Y1( y1 ),
+  X2( x2 ),
+  Y2( y2 )
+{
+}
+
+/**************/
+/* DESTRUCTOR */
+/**************/
+Rectangle::~Rectangle() {
+}
+