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
Revision 8:27244a0c3414, committed 2019-04-20
- Comitter:
- el17sm
- Date:
- Sat Apr 20 22:51:55 2019 +0000
- Parent:
- 7:4aaa37a711a1
- Child:
- 9:304079450898
- Commit message:
- trauma;
Changed in this revision
| Entity.h | Show annotated file Show diff for this revision Revisions of this file |
| sprites.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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++){
--- a/sprites.h Sat Apr 20 22:17:24 2019 +0000
+++ b/sprites.h Sat Apr 20 22:51:55 2019 +0000
@@ -290,7 +290,7 @@
{0,0,0,0,1,0,}
}
},
- { // Right
+ { // Left
{
{0,1,1,1,1,0,},
{1,1,1,1,1,1,},