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.h
- Revision:
- 8:27244a0c3414
- Parent:
- 7:4aaa37a711a1
diff -r 4aaa37a711a1 -r 27244a0c3414 Entity.h
--- a/Entity.h Sat Apr 20 22:17:24 2019 +0000
+++ b/Entity.h Sat Apr 20 22:51:55 2019 +0000
@@ -34,6 +34,7 @@
public:
// Functions
virtual void move(float mapped_x, float mapped_y) = 0;
+
bool matrix_collision_test(float pos_x, float pos_y, int map_no){
for (int j = pos_y; j < (int)pos_y + hitbox.height; j++){
for(int i = pos_x; i < (int)pos_x + hitbox.width; i++){