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 wave_player 4DGL-uLCD-SE MMA8452
Diff: main.cpp
- Revision:
- 2:1ca97843a334
- Parent:
- 0:35660d7952f7
- Child:
- 3:e4690ad5a4d2
diff -r 399033d39feb -r 1ca97843a334 main.cpp
--- a/main.cpp Wed Apr 04 21:11:07 2018 +0000
+++ b/main.cpp Mon Oct 28 04:56:07 2019 +0000
@@ -20,6 +20,7 @@
int x,y; // Current locations
int px, py; // Previous locations
int has_key;
+ // You can add other properties for the player here
} Player;
/**
@@ -142,7 +143,8 @@
/**
* Initialize the main world map. Add walls around the edges, interior chambers,
- * and plants in the background so you can see motion.
+ * and plants in the background so you can see motion. Note: using the similar
+ * procedusre you can init the secondary map(s).
*/
void init_main_map()
{