project for 2035

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Committer:
kblake9
Date:
Wed Nov 25 04:48:22 2020 +0000
Revision:
22:33f1a0dff46c
Parent:
18:92431a28b46b
final

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 22:33f1a0dff46c 15 s->locations[1].x = 39;
kblake9 22:33f1a0dff46c 16 s->locations[1].y = 50;
kblake9 22:33f1a0dff46c 17 s->head_x = 5;
kblake9 22:33f1a0dff46c 18 s->head_y = 5;
kblake9 22:33f1a0dff46c 19 s->head_px = 5;
kblake9 22:33f1a0dff46c 20 s->head_py = 5;
DCchico 1:10330bce85cb 21 }