project for 2035
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: graphics.cpp
- Revision:
- 10:7f96ff75b7a5
- Parent:
- 9:c9d6eda597b0
- Child:
- 11:20e5a1b9b1af
diff -r c9d6eda597b0 -r 7f96ff75b7a5 graphics.cpp --- a/graphics.cpp Tue Nov 24 22:25:57 2020 +0000 +++ b/graphics.cpp Tue Nov 24 22:27:07 2020 +0000 @@ -56,6 +56,8 @@ //Tile still need to be designed on paper uLCD.filled_rectangle(u, v, u+10, v+10, GREEN); + uLCD.pixel(u+8, v+2, RED); + uLCD.line(u+2, v+8, RED); } void draw_snake_tail(int u, int v) @@ -63,6 +65,6 @@ //May need to design a snake tail sprite //Tile still need to be designed on paper uLCD.filled_rectangle(u, v, u+10, v+10, GREEN); + uLCD.pixel(u+10, v+2, RED); + uLCD.pixel(u+10, v+8, RED); } - -