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
Diff: CrossyChicken/CrossyChicken.cpp
- Revision:
- 11:cc5861abfca5
- Parent:
- 9:d210eede4a1b
- Child:
- 12:a0e0939a498f
diff -r 72ec8926acda -r cc5861abfca5 CrossyChicken/CrossyChicken.cpp
--- a/CrossyChicken/CrossyChicken.cpp Wed May 13 00:59:52 2020 +0000
+++ b/CrossyChicken/CrossyChicken.cpp Wed May 13 01:34:03 2020 +0000
@@ -40,6 +40,11 @@
bool frogDie = false; // whenever the frog is above safety lane in the middle
bool attach = false;
+CrossyChicken::CrossyChicken(Level *level)
+{
+ this->local_level = level;
+}
+
//main function that starts the game
void CrossyChicken::start(){
//game setup
@@ -269,3 +274,14 @@
}
}
+void drawObjects()
+{
+ std::vector<ObjectInfo *>::size_type it;
+
+ for(auto lane : first_level)
+ {
+
+
+ }
+}
+