aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arduino_sketch/arcerino/arcerino.ino11
1 files changed, 9 insertions, 2 deletions
diff --git a/arduino_sketch/arcerino/arcerino.ino b/arduino_sketch/arcerino/arcerino.ino
index ba1a6fa..fe582c8 100644
--- a/arduino_sketch/arcerino/arcerino.ino
+++ b/arduino_sketch/arcerino/arcerino.ino
@@ -25,6 +25,7 @@ void draw_game() {
u8g.drawCircle(42,24,24);
u8g.drawCircle(42,24,16);
u8g.drawCircle(42,24,8);
+ u8g.drawCircle(42,24,4);
u8g.drawVLine(x+LCD_0X,y-4+LCD_0Y,9);
u8g.drawHLine(x-4+LCD_0X,y+LCD_0Y,9);
}
@@ -36,6 +37,7 @@ void draw_score() {
u8g.drawCircle(42,24,24);
u8g.drawCircle(42,24,16);
u8g.drawCircle(42,24,8);
+ u8g.drawCircle(42,24,4);
u8g.drawDisc(x+LCD_0X,y+LCD_0Y,3);
}
@@ -58,16 +60,21 @@ void update_position() {
}
char get_score() {
- int d = sqrt(pow(x,2) + pow(y,2)) / 8;
+ int d = sqrt(pow(x,2) + pow(y,2)) / 4;
Serial.println(d,DEC);
switch(d) {
case 0:
return 10;
break;
case 1:
- return 5;
+ return 6;
break;
case 2:
+ case 3:
+ return 3;
+ break;
+ case 4:
+ case 5:
return 1;
break;
default: