test 1 doc

Dependencies:   mbed Gamepad2

Revision:
12:eb8d30593e95
Parent:
11:b3024ab59fa5
Child:
13:cb5ed2f0cbd5
--- a/Coin/Coin.cpp	Wed May 27 03:52:11 2020 +0000
+++ b/Coin/Coin.cpp	Wed May 27 04:22:47 2020 +0000
@@ -1,9 +1,7 @@
 #include "Coin.h"
 
-Coin::Coin(int x, int y)
+Coin::Coin()
 {
-    _x = x;
-    _y = y;
 }
 
 Coin::~Coin()
@@ -11,15 +9,16 @@
 
 }
 
+void Coin::init(){
+        _x = WIDTH /2;
+        _y = HEIGHT /2 -5;
+    }
 
 void Coin::draw(N5110 &lcd)
 {
-    for(int i = 5; i < 7 ; i++ ) {
-        lcd.drawCircle(_x, _y, i, FILL_TRANSPARENT);
-    }
-    for(int i = 7; i > 5 ; i-- ) {
-        lcd.drawCircle(_x, _y, i, FILL_TRANSPARENT);
-    }
+        lcd.drawCircle(_x, _y, 1, FILL_TRANSPARENT);
+        lcd.drawCircle(_x, _y, 2, FILL_TRANSPARENT);
+  
 }
 
 void Coin::show(Gamepad &pad)