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
Revision 2:1ca97843a334, committed 2019-10-28
- Comitter:
- rashidi1saeed
- Date:
- Mon Oct 28 04:56:07 2019 +0000
- Parent:
- 1:399033d39feb
- Child:
- 3:e4690ad5a4d2
- Commit message:
- Added more comments
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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()
{