project for 2035

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

snake.cpp

Committer:
kblake9
Date:
2020-11-24
Revision:
6:492048165bba
Parent:
2:4947d6a82971
Child:
7:1912b4a2e4fe

File content as of revision 6:492048165bba:

// Copyright 2020 Georgia Tech.  All rights reserved.
// The materials provided by the instructor in this course are for
// the use of the students currently enrolled in the course.
// Copyrighted course materials may not be further disseminated.
// This file must not be made publicly available anywhere.

#include "snake.h"

void snake_init (Snake * s)
{
    s->head_x = 10;
    s->head_y = 10;
    s->head_px = 0;
    s->head_py = 0;
    s->length = 2;
    s->locations[0]->x = 0;
    s->locations[0]->y = 0;
    s->score = 0;
}