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 MotionSensor
Diff: Entity/Headless/Headless.cpp
- Revision:
- 20:6405835af6e2
- Parent:
- 13:d04a6caba40d
--- a/Entity/Headless/Headless.cpp Wed Apr 24 06:28:14 2019 +0000
+++ b/Entity/Headless/Headless.cpp Thu Apr 25 04:40:30 2019 +0000
@@ -43,6 +43,10 @@
face = 3;
}
+ // wall collision
+ undo_move_x(matrix_collision_test(position.x, prev_pos.y, 0));
+ undo_move_y(matrix_collision_test(prev_pos.x, position.y, 0));
+
if (frame.number < frame.max){
frame.count++;
}