project for 2035

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Revision:
18:92431a28b46b
Parent:
9:c9d6eda597b0
Child:
22:33f1a0dff46c
diff -r 0549f0894d9b -r 92431a28b46b snake.cpp
--- a/snake.cpp	Tue Nov 24 22:57:04 2020 +0000
+++ b/snake.cpp	Wed Nov 25 00:44:52 2020 +0000
@@ -8,5 +8,10 @@
 
 void snake_init (Snake * s)
 {
-
+    s->length = 2;
+    s->score = 0;
+    s->locations[0].x = 50;
+    s->locations[0].y = 50;
+    s->locations[1].x = 40;
+    s->locations[1].y = 40;
 }