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.
Dependencies: mbed ll16j23s_test_docs
Diff: SnakeEngine/SnakeEngine.h
- Revision:
- 8:bcc3403d7e79
- Parent:
- 7:dd84e0fab346
- Child:
- 9:0571880085cc
--- a/SnakeEngine/SnakeEngine.h Sun May 24 22:18:55 2020 +0000
+++ b/SnakeEngine/SnakeEngine.h Mon May 25 14:45:32 2020 +0000
@@ -39,9 +39,11 @@
void transition_white(N5110 &lcd);
void select_circles(N5110 &lcd, int line);
void preview(N5110 &lcd, int _map);
- void draw_map2(N5110 &lcd);
- void draw_map3(N5110 &lcd);
- void draw_map4(N5110 &lcd);
+ void map2_draw(N5110 &lcd);
+ void map3_draw(N5110 &lcd);
+ void map4_draw(N5110 &lcd);
+
+ void contrast(Gamepad &pad, N5110 &lcd_);
int score;
int _game_state;
@@ -56,11 +58,15 @@
Food _food;
//bool _game = true;
- void snake_food_collision(Gamepad &pad, int &_length);
- void map();
+ void snake_food_collision(Gamepad &pad, N5110 &lcd, int &_length);
+ void map_run(N5110 &lcd);
+ bool snake_map2_collision();
+ bool snake_map3_collision();
+ bool snake_map4_collision();
float _angle;
int _menu_select;
int _map;
+ float _pot2;
//Bitmap snake_select1(snake_select1, 8, 8);
//Bitmap snake_select2(snake_select2, 16, 8);