project for 2035

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Committer:
kblake9
Date:
Wed Nov 25 00:44:52 2020 +0000
Revision:
18:92431a28b46b
Parent:
9:c9d6eda597b0
Child:
22:33f1a0dff46c
works on lcd!!!!!!!!!!!!!!! redesign tail

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DCchico 2:4947d6a82971 1 // Copyright 2020 Georgia Tech. All rights reserved.
DCchico 2:4947d6a82971 2 // The materials provided by the instructor in this course are for
DCchico 2:4947d6a82971 3 // the use of the students currently enrolled in the course.
DCchico 2:4947d6a82971 4 // Copyrighted course materials may not be further disseminated.
DCchico 2:4947d6a82971 5 // This file must not be made publicly available anywhere.
DCchico 2:4947d6a82971 6
DCchico 1:10330bce85cb 7 #include "snake.h"
DCchico 1:10330bce85cb 8
DCchico 1:10330bce85cb 9 void snake_init (Snake * s)
DCchico 1:10330bce85cb 10 {
kblake9 18:92431a28b46b 11 s->length = 2;
kblake9 18:92431a28b46b 12 s->score = 0;
kblake9 18:92431a28b46b 13 s->locations[0].x = 50;
kblake9 18:92431a28b46b 14 s->locations[0].y = 50;
kblake9 18:92431a28b46b 15 s->locations[1].x = 40;
kblake9 18:92431a28b46b 16 s->locations[1].y = 40;
DCchico 1:10330bce85cb 17 }