project for 2035

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

snake.cpp

Committer:
kblake9
Date:
2020-11-24
Revision:
8:2e18a96e0c77
Parent:
7:1912b4a2e4fe
Child:
9:c9d6eda597b0

File content as of revision 8:2e18a96e0c77:

// 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->score = 0;
}