P2-2 Harris Barton
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: snake.h
- Revision:
- 2:4947d6a82971
- Parent:
- 1:10330bce85cb
- Child:
- 3:e2fb359d6545
--- a/snake.h Fri Oct 23 16:18:39 2020 -0400 +++ b/snake.h Fri Oct 23 16:30:18 2020 -0400 @@ -1,11 +1,10 @@ -#define SNAKE_MAX_LENGTH 50 +// 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. -// Structure for holding detailed information about the snake -typedef struct{ - int speed; - int speed_up_duration; - bool go_through_wall; -} Status; +#define SNAKE_MAX_LENGTH 50 // Structure of coordinates in the map typedef struct{ @@ -18,7 +17,6 @@ int head_x, head_y, head_px, head_py; // Location of the head of the snake int length; // length of the snake Coordinate locations[SNAKE_MAX_LENGTH]; // Snake body locations - Status snake_status; // Stauts of the snake int score; //Current score of the snake } Snake;