Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: SnakeFood/SnakeFood.cpp
- Revision:
- 30:461231877c89
- Parent:
- 25:e827f1a8fadc
- Child:
- 32:3a3bdeffdf62
--- a/SnakeFood/SnakeFood.cpp Sun Apr 14 10:24:59 2019 +0000
+++ b/SnakeFood/SnakeFood.cpp Mon Apr 15 06:00:01 2019 +0000
@@ -17,10 +17,10 @@
{0,1,0},
};
-int n = 0;
void SnakeFood::init() //Delete Int
{
fooddrop=0;
+ n = 0;
}
@@ -32,9 +32,6 @@
//add sideways velocity incase I want to make it dodgy.
-
- //Remember to seed
-
//Resets SnakeFood position if it reaches the bottom of the screen.
//Also prevents SnakeFood from going out of the side of the screen.
if(_fx < 0){