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 N5110 ShiftReg PinDetect
Diff: Game.h
- Revision:
- 13:7ab71c7c311b
- Parent:
- 12:8178fad5e660
- Child:
- 14:b4fed570abaf
--- a/Game.h Fri May 08 23:51:26 2015 +0000
+++ b/Game.h Sat May 09 13:56:14 2015 +0000
@@ -35,10 +35,12 @@
private:
-
-
+ /// Moves entity in map. If collision occurs, entity can not move further
+ void moveWithCollisionTest(Entity* entity, const int map[HEIGHT][WIDTH]);
+
void init(); /// Sets some initial values
Entity player; /// Player object
+ Entity enemy; /// Enemy object
bool releasedBtnB; /// True if button B has been released after being pressed down